<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jozef Chúťka&#039;s blog &#187; Error</title>
	<atom:link href="http://blog.yoz.sk/tag/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quick Tip: Constructor Of Property With Namespace</title>
		<link>http://blog.yoz.sk/2011/03/quick-tip-constructor-of-property-with-namespace/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-tip-constructor-of-property-with-namespace</link>
		<comments>http://blog.yoz.sk/2011/03/quick-tip-constructor-of-property-with-namespace/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 16:41:12 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[getDefinitionByName]]></category>
		<category><![CDATA[namespace]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=2937</guid>
		<description><![CDATA[Some of you may not like the solution (including me) but sometimes you need a little hack to make things work for you. In my case I required a constructor of property declared under custom namespace but not defined (null). Normally, you would go for describeType(), but guess what, yeah it just does not describes [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you may not like the solution (including me) but sometimes you need a little hack to make things work for you. In my case I required a constructor of property declared under custom namespace but not defined (null). Normally, you would go for <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html#describeType()">describeType()</a>, but guess what, yeah it just does not describes properties with namespace other than public. While there was nothing better in my mind than passing some unexpected value and expect what happend I decided to go for it. Luckily an exception was thrown with correct constructor name.</p>
<p><span id="more-2937"></span></p>
<p>Error message looks something like this:</p>
<pre class="brush: plain; title: ; notranslate">TypeError: Error #1034: Type Coercion failed: cannot convert true to valueObject.SomeObject.</pre>
<p>lets parse it:</p>
<pre class="brush: as3; title: ; notranslate">import com.adobe.fiber.core.model_internal;

var item:SomeUltraCleverObjectWithNamespacedProperty
var className:String;
var constructor:Class;
try
{
    item.model_internal::[&quot;_internal_&quot; + name + &quot;_leaf&quot;] = true;
}
catch(error:Error)
{
    className = error.message.toString().match(&quot;([^\\s]+)\.$&quot;)[1];
}

constructor = getDefinitionByName(className) as Class;</pre>
<p>You should be careful about using it, because constructor is parsed from an error message that is localized (part of flash player). It may happen that in some translations the constructor name may appear in different part of the message (example parses at the end of sentence before dot &#8220;.&#8221; character).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2011/03/quick-tip-constructor-of-property-with-namespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress SyntaxHighlighter Evolved goes Error</title>
		<link>http://blog.yoz.sk/2010/01/wordpress-syntaxhighlighter-evolved-goes-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-syntaxhighlighter-evolved-goes-error</link>
		<comments>http://blog.yoz.sk/2010/01/wordpress-syntaxhighlighter-evolved-goes-error/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 10:44:49 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[SyntaxHighlighter]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=977</guid>
		<description><![CDATA[After latest SyntaxHighlighter plugin update (version 2.3.8), there suddenly appears error window while mouse moving over SyntaxHighlighter code: The problem is in clipboard.swf file loading as icon (copy to clipboard). There are more people complaining on this error behaviour, and there is a simple fix. Replace this file in your wordpress: For this one clipboard.swf. [...]]]></description>
			<content:encoded><![CDATA[<p>After latest SyntaxHighlighter plugin update (version 2.3.8), there suddenly appears error window while mouse moving over SyntaxHighlighter code:</p>
<pre class="brush: plain; title: ; notranslate">Error #2044 &amp; text=Error #2036 Load never comple</pre>
<p>The problem is in clipboard.swf file loading as icon (copy to clipboard). There are more <a href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/">people complaining on this error behaviour</a>, and there is a simple fix. Replace this file in your wordpress:</p>
<pre class="brush: plain; title: ; notranslate">wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf</pre>
<p>For this one <a href="http://dl.dropbox.com/u/340823/clipboard.swf">clipboard.swf</a>. And its working nicely again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2010/01/wordpress-syntaxhighlighter-evolved-goes-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook application type web goes 104 Incorrect signature</title>
		<link>http://blog.yoz.sk/2009/11/facebook-application-type-web-goes-104-incorrect-signatur/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=facebook-application-type-web-goes-104-incorrect-signatur</link>
		<comments>http://blog.yoz.sk/2009/11/facebook-application-type-web-goes-104-incorrect-signatur/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 10:00:16 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[104]]></category>
		<category><![CDATA[Application Type]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[facebook api]]></category>
		<category><![CDATA[incorrect signature]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=588</guid>
		<description><![CDATA[When creating flash / flex application for facebook, Application Type &#8220;Desktop&#8221; will work for you just fine, even when your app is deployed. My app is both embedded via iframe in facebook and standalone application (not in facebook). First I tought desktop mode is just to test my app locally and when finished, I should [...]]]></description>
			<content:encoded><![CDATA[<p>When creating flash / flex application for facebook, Application Type &#8220;Desktop&#8221; will work for you just fine, even when your app is deployed. My app is both embedded via iframe in facebook and standalone application (not in facebook). First I tought desktop mode is just to test my app locally and when finished, I should switch to web type. But guess what, after switching to &#8220;Web&#8221; type, my standalone application refused some actions (upload photos etc.), resulting in error:</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">error_code: 104
error_msg: Incorrect signature</pre>
<p>So, I switched back to &#8220;Desktop&#8221; and both iframe and standalone applications works fine. <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Correct me if I am wrong, but it seems, desktop application type works for facebook flash / flex api in all cases.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/11/facebook-application-type-web-goes-104-incorrect-signatur/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Quick tip: Flex Builder already appears to be running.</title>
		<link>http://blog.yoz.sk/2009/11/quick-tip-flex-builder-already-appears-to-be-running/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-tip-flex-builder-already-appears-to-be-running</link>
		<comments>http://blog.yoz.sk/2009/11/quick-tip-flex-builder-already-appears-to-be-running/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 15:52:53 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Flex Builder]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=580</guid>
		<description><![CDATA[Flex Builder already appears to be running. Running two copies of Flex Builder at the same time is not recommended. Are you sure you want to continue? [ Ok ] &#8230; and you do not see one? In windows, open task manager, find javaw.exe and end task.]]></description>
			<content:encoded><![CDATA[<blockquote><p>Flex Builder already appears to be running. Running two copies of Flex Builder at the same time is not recommended. Are you sure you want to continue? [ Ok ]</p></blockquote>
<p>&#8230; and you do not see one? In windows, open task manager, find javaw.exe and end task.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/11/quick-tip-flex-builder-already-appears-to-be-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Error #1034: Type Coercion Failed: Cannot Convert *** to mx.core.IFlexDisplayObject</title>
		<link>http://blog.yoz.sk/2009/10/flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject</link>
		<comments>http://blog.yoz.sk/2009/10/flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 16:10:11 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[ApplicationDomain]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[IFlexDisplayObject]]></category>
		<category><![CDATA[Loader]]></category>
		<category><![CDATA[LoaderContext]]></category>
		<category><![CDATA[URLRequest]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=501</guid>
		<description><![CDATA[When you keep getting: Flex Error #1034: Type Coercion Failed: Cannot Convert *** to mx.core.IFlexDisplayObject &#8230; after using getDefinition() method, in my case: The problem is, in fact, the security not coercion! Try move your .swf (the one that is beeing loaded) into the same directory where master .swf file is located.]]></description>
			<content:encoded><![CDATA[<p>When you keep getting:</p>
<pre>Flex Error #1034: Type Coercion Failed: Cannot Convert *** to mx.core.IFlexDisplayObject</pre>
<p>&#8230; after using getDefinition() method, in my case:</p>
<pre class="brush: as3; title: ; notranslate">
// url = &quot;../some.swf&quot;
var request:URLRequest = new URLRequest(url);
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, assetsComplete);
loader.load(request, context);
...
// assetsComplete()
var applicationDomain:ApplicationDomain = assetsLoader.contentLoaderInfo.applicationDomain;
var assetsClass:Class = applicationDomain.getDefinition(&quot;Assets&quot;) as Class;
...
</pre>
<p>The problem is, in fact, the security not coercion! Try move your .swf (the one that is beeing loaded) into the same directory where master .swf file is located.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/10/flex-error-1034-type-coercion-failed-cannot-convert-to-mx-core-iflexdisplayobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

