<?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"
	>

<channel>
	<title>Flash Action Script Error Repository</title>
	<atom:link href="http://www.actionscripterrors.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.actionscripterrors.com</link>
	<description>A library of solutions to Actionscript, Flash, Flex and AIR</description>
	<pubDate>Tue, 01 Jun 2010 00:50:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Multiple sets of visual children have been specified for the component tag</title>
		<link>http://www.actionscripterrors.com/?p=2170</link>
		<comments>http://www.actionscripterrors.com/?p=2170#comments</comments>
		<pubDate>Tue, 01 Jun 2010 00:50:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design View]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2170</guid>
		<description><![CDATA[Multiple sets of visual children have been specified for the component tag.
You have contents in the default property of a container but also defined in the custom component. Remove the contents of the component instance and if need be move it into the component mxml file. 
PLAIN TEXT
XML:




&#60;!-- Incorrect - notice the rectangle inside the [...]]]></description>
			<content:encoded><![CDATA[<p>Multiple sets of visual children have been specified for the component tag.</p>
<p>You have contents in the default property of a container but also defined in the custom component. Remove the contents of the component instance and if need be move it into the component mxml file. </p>
<div class="igBar"><span id="lxml-2"><a href="#" onclick="javascript:showPlainTxt('xml-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-2">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Incorrect - notice the rectangle inside the component instance --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;local</span>:CustomComponent&nbsp; <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"135"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"9"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"457"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"340"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:Rect <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100%"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"100%"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:SolidColor <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#dddddd"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:fill<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:Rect<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/local</span>:CustomComponent<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Correct - rectangle is defined in the component --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;local</span>:CustomComponent&nbsp; <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"135"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"9"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"457"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"340"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2170</wfw:commentRss>
		</item>
		<item>
		<title>Invalid component name &#8216;default&#8217;: component name must be legal ActionScript class name.</title>
		<link>http://www.actionscripterrors.com/?p=2168</link>
		<comments>http://www.actionscripterrors.com/?p=2168#comments</comments>
		<pubDate>Mon, 29 Mar 2010 05:37:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Compiler]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2168</guid>
		<description><![CDATA[Invalid component name 'default': component name must be legal ActionScript class name.	default.css	
You cannot name a class or css file a reserved keyword such as, "if", "else", "switch", "default", etc
Incorrect filename:
default.css
Correct filename
styles.css
more info...
]]></description>
			<content:encoded><![CDATA[<p>Invalid component name 'default': component name must be legal ActionScript class name.	default.css	</p>
<p>You cannot name a class or css file a reserved keyword such as, "if", "else", "switch", "default", etc</p>
<p>Incorrect filename:<br />
default.css</p>
<p>Correct filename<br />
styles.css</p>
<p><a href="https://bugs.adobe.com/jira/browse/FB-8523">more info...</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2168</wfw:commentRss>
		</item>
		<item>
		<title>&#8221; declaration must be contained within the  tag, since it is not assignable to the default property&#8217;s element type &#8216;mx.core.IVisualElement&#8217;.</title>
		<link>http://www.actionscripterrors.com/?p=2167</link>
		<comments>http://www.actionscripterrors.com/?p=2167#comments</comments>
		<pubDate>Wed, 24 Mar 2010 04:43:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Compiler]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2167</guid>
		<description><![CDATA['' declaration must be contained within the &#60;Declarations&#62; tag, since it is not assignable to the default property's element type 'mx.core.IVisualElement'.
This is interesting! I pasted code in an ichat window then copied it out and pasted it back into the MXML application file. After that I started getting the error mentioned here. It turns out [...]]]></description>
			<content:encoded><![CDATA[<p>'' declaration must be contained within the &lt;Declarations&gt; tag, since it is not assignable to the default property's element type 'mx.core.IVisualElement'.</p>
<p>This is interesting! I pasted code in an ichat window then copied it out and pasted it back into the MXML application file. After that I started getting the error mentioned here. It turns out there are hidden invisible characters that are incompatible with the compiler.</p>
<p>So to fix this problem I had to erase the white space near where the error was. This fixed the problem. NOTE: It may be the error is on the line above or line below where it is being reported.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2167</wfw:commentRss>
		</item>
		<item>
		<title>ReferenceError: Error #1069: Property leadingModel not found on String and there is no default value.</title>
		<link>http://www.actionscripterrors.com/?p=2166</link>
		<comments>http://www.actionscripterrors.com/?p=2166#comments</comments>
		<pubDate>Mon, 22 Mar 2010 07:30:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2166</guid>
		<description><![CDATA[ReferenceError: Error #1069: Property leadingModel not found on String and there is no default value.
	at flashx.textLayout.elements::LinkElement/computeLinkFormat()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\LinkElement.as:437]
Incorrect Code:
PLAIN TEXT
XML:




&#60;s:RichEditableText x="92" y="22" color="#2b4381" editable="false" fontFamily="Myriad Pro" fontSize="17" whiteSpaceCollapse="preserve"&#62;


&#160; &#160; &#160; &#160; &#60;s:textFlow&#62;


&#160; &#160; &#160; &#160; &#160; &#160; &#60;s:TextFlow&#62;


&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;s:linkActiveFormat&#62;


&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;/s:linkActiveFormat&#62;


&#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>ReferenceError: Error #1069: Property leadingModel not found on String and there is no default value.<br />
	at flashx.textLayout.elements::LinkElement/computeLinkFormat()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\LinkElement.as:437]</p>
<p>Incorrect Code:</p>
<div class="igBar"><span id="lxml-5"><a href="#" onclick="javascript:showPlainTxt('xml-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-5">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"92"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"22"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#2b4381"</span> <span style="color: #000066;">editable</span>=<span style="color: #ff0000;">"false"</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">"Myriad Pro"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"17"</span> <span style="color: #000066;">whiteSpaceCollapse</span>=<span style="color: #ff0000;">"preserve"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:linkActiveFormat<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:linkActiveFormat<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:a <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://google.com"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#f77d0e"</span> <span style="color: #000066;">textDecoration</span>=<span style="color: #ff0000;">"none"</span><span style="font-weight: bold; color: black;">&gt;</span></span>link<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:a<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:RichEditableText<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Correct:</p>
<div class="igBar"><span id="lxml-6"><a href="#" onclick="javascript:showPlainTxt('xml-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-6">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"92"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"22"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#2b4381"</span> <span style="color: #000066;">editable</span>=<span style="color: #ff0000;">"false"</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">"Myriad Pro"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"17"</span> <span style="color: #000066;">whiteSpaceCollapse</span>=<span style="color: #ff0000;">"preserve"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:a <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://google.com"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#f77d0e"</span> <span style="color: #000066;">textDecoration</span>=<span style="color: #ff0000;">"none"</span><span style="font-weight: bold; color: black;">&gt;</span></span>link<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:a<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:RichEditableText<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2166</wfw:commentRss>
		</item>
		<item>
		<title>TypeError: Bad element of type int passed to mxmlChildren 	at flashx.textLayout.elements::FlowGroupElement/set mxmlChildren</title>
		<link>http://www.actionscripterrors.com/?p=2165</link>
		<comments>http://www.actionscripterrors.com/?p=2165#comments</comments>
		<pubDate>Mon, 22 Mar 2010 05:35:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Runtime]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2165</guid>
		<description><![CDATA[TypeError: Bad element of type int passed to mxmlChildren
	at flashx.textLayout.elements::FlowGroupElement/set mxmlChildren()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\FlowGroupElement.as:203]
I using data binding and I passed a integer inside a span tag as shown below. To fix it I had to cast it or convert it to a string. 
PLAIN TEXT
XML:




&#60;s:RichEditableText x="20" y="100" color="#2b4381" editable="false" fontFamily="Myriad Pro" fontSize="17" width="494" height="55" whiteSpaceCollapse="preserve"&#62;


&#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>TypeError: Bad element of type int passed to mxmlChildren<br />
	at flashx.textLayout.elements::FlowGroupElement/set mxmlChildren()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\FlowGroupElement.as:203]</p>
<p>I using data binding and I passed a integer inside a span tag as shown below. To fix it I had to cast it or convert it to a string. </p>
<div class="igBar"><span id="lxml-9"><a href="#" onclick="javascript:showPlainTxt('xml-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-9">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"20"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#2b4381"</span> <span style="color: #000066;">editable</span>=<span style="color: #ff0000;">"false"</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">"Myriad Pro"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"17"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"494"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"55"</span> <span style="color: #000066;">whiteSpaceCollapse</span>=<span style="color: #ff0000;">"preserve"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:a <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://google.com"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#ffffff"</span> <span style="color: #000066;">textDecoration</span>=<span style="color: #ff0000;">"none"</span><span style="font-weight: bold; color: black;">&gt;</span></span>&nbsp; &nbsp;{data.contentCount} <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:a<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:RichEditableText<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Correct:</p>
<div class="igBar"><span id="lxml-10"><a href="#" onclick="javascript:showPlainTxt('xml-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-10">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"20"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#2b4381"</span> <span style="color: #000066;">editable</span>=<span style="color: #ff0000;">"false"</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">"Myriad Pro"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"17"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"494"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"55"</span> <span style="color: #000066;">whiteSpaceCollapse</span>=<span style="color: #ff0000;">"preserve"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:a <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://google.com"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#ffffff"</span> <span style="color: #000066;">textDecoration</span>=<span style="color: #ff0000;">"none"</span><span style="font-weight: bold; color: black;">&gt;</span></span>&nbsp; &nbsp;{String(data.contentCount)} <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:a<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:RichEditableText<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2165</wfw:commentRss>
		</item>
		<item>
		<title>TypeError: Bad element of type flashx.textLayout.elements::LinkElement passed to mxmlChildren</title>
		<link>http://www.actionscripterrors.com/?p=2164</link>
		<comments>http://www.actionscripterrors.com/?p=2164#comments</comments>
		<pubDate>Fri, 19 Mar 2010 22:01:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Runtime]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2164</guid>
		<description><![CDATA[TypeError: Bad element of type flashx.textLayout.elements::LinkElement passed to mxmlChildren
	at flashx.textLayout.elements::SpanElement/set mxmlChildren()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\SpanElement.as:209]
	at Test/_Test_SpanElement1_c()[/Users/monkeypunch/Documents/test/src/Test.mxml:5]
Incorrect:
PLAIN TEXT
XML:




&#60;s:RichText x="20" y="100" color="#2b4381" fontFamily="Myriad Pro" fontSize="17" tabStops="S0 S50 S100 S150 S200 S250 S300 S350 S400 S450 S500" width="494" height="55" whiteSpaceCollapse="preserve"&#62;


&#160; &#160; &#160; &#160; &#60;s:content&#62;&#60;s:p&#62;&#60;s:span color="#f77d0e"&#62;&#60;s:a href="http://google.com"&#62;{data.username}&#60;/s:a&#62;&#60;/s:span&#62;&#60;s:span&#62; &#60;/s:span&#62;&#60;s:span color="#ffffff"&#62;posted 18 photos to&#60;/s:span&#62;&#60;s:span&#62; &#60;/s:span&#62;&#60;s:span color="#0693ab"&#62;Web 2.0 Silicon Valley Design Team&#60;/s:span&#62;&#60;/s:p&#62;&#60;/s:content&#62;


&#160; &#160; &#60;/s:RichText&#62; 






Correct: LinkElements [...]]]></description>
			<content:encoded><![CDATA[<p>TypeError: Bad element of type flashx.textLayout.elements::LinkElement passed to mxmlChildren<br />
	at flashx.textLayout.elements::SpanElement/set mxmlChildren()[C:\Vellum\branches\v1\1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\SpanElement.as:209]<br />
	at Test/_Test_SpanElement1_c()[/Users/monkeypunch/Documents/test/src/Test.mxml:5]</p>
<p>Incorrect:</p>
<div class="igBar"><span id="lxml-13"><a href="#" onclick="javascript:showPlainTxt('xml-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-13">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"20"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#2b4381"</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">"Myriad Pro"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"17"</span> <span style="color: #000066;">tabStops</span>=<span style="color: #ff0000;">"S0 S50 S100 S150 S200 S250 S300 S350 S400 S450 S500"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"494"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"55"</span> <span style="color: #000066;">whiteSpaceCollapse</span>=<span style="color: #ff0000;">"preserve"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:content<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#f77d0e"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:a <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://google.com"</span><span style="font-weight: bold; color: black;">&gt;</span></span>{data.username}<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:a<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span> <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#ffffff"</span><span style="font-weight: bold; color: black;">&gt;</span></span>posted 18 photos to<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span> <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#0693ab"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Web 2.0 Silicon Valley Design Team<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:content<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:RichText<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Correct: LinkElements cannot be children of span tags. Move the span inside of the link element or copy the attributes from the span to the link.</p>
<div class="igBar"><span id="lxml-14"><a href="#" onclick="javascript:showPlainTxt('xml-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-14">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"20"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#2b4381"</span> <span style="color: #000066;">editable</span>=<span style="color: #ff0000;">"false"</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">"Myriad Pro"</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">"17"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"494"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"55"</span> <span style="color: #000066;">whiteSpaceCollapse</span>=<span style="color: #ff0000;">"preserve"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:a <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://google.com"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#f77d0e"</span> <span style="color: #000066;">textDecoration</span>=<span style="color: #ff0000;">"none"</span><span style="font-weight: bold; color: black;">&gt;</span></span>{data.username}<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:a<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#ffffff"</span><span style="font-weight: bold; color: black;">&gt;</span></span> posted 18 photos to<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span> <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:span <span style="color: #000066;">color</span>=<span style="color: #ff0000;">"#0693ab"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Web 2.0 Silicon Valley Design Team<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:p<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:TextFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:textFlow<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:RichEditableText<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2164</wfw:commentRss>
		</item>
		<item>
		<title>The dependency spark.components.Button from /Applications/Adobe Flash Builder 4/sdks/4.0.0/frameworks/libs/spark.swc has a minimum supported version of 4.0.0, which is higher than the compatibility version, 3.0.0.</title>
		<link>http://www.actionscripterrors.com/?p=2163</link>
		<comments>http://www.actionscripterrors.com/?p=2163#comments</comments>
		<pubDate>Sat, 13 Mar 2010 00:51:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Compiler]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2163</guid>
		<description><![CDATA[The dependency spark.components.Button from /Applications/Adobe Flash Builder 4/sdks/4.0.0/frameworks/libs/spark.swc has a minimum supported version of 4.0.0, which is higher than the compatibility version, 3.0.0.
Problem
The "Use Flex 3 Compatibility mode" flag is checked in the Flash Builder compiler settings and conflicts with the Flex SDK version you have chosen. Read more here... http://opensource.adobe.com/wiki/display/flexsdk/Compatibility+Mode+SWC+Policy+(Mini+Specification)
Solution
Turn off this option in [...]]]></description>
			<content:encoded><![CDATA[<p>The dependency spark.components.Button from /Applications/Adobe Flash Builder 4/sdks/4.0.0/frameworks/libs/spark.swc has a minimum supported version of 4.0.0, which is higher than the compatibility version, 3.0.0.</p>
<p>Problem<br />
The "Use Flex 3 Compatibility mode" flag is checked in the Flash Builder compiler settings and conflicts with the Flex SDK version you have chosen. Read more here... <a href="http://opensource.adobe.com/wiki/display/flexsdk/Compatibility+Mode+SWC+Policy+(Mini+Specification)">http://opensource.adobe.com/wiki/display/flexsdk/Compatibility+Mode+SWC+Policy+(Mini+Specification)</a></p>
<p>Solution<br />
Turn off this option in the Flex Compiler settings by unchecking this box in your project. Easy...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2163</wfw:commentRss>
		</item>
		<item>
		<title>Initializer for &#8216;dataProvider&#8217;: values of type mx.collections.IList cannot be represented in text.</title>
		<link>http://www.actionscripterrors.com/?p=2162</link>
		<comments>http://www.actionscripterrors.com/?p=2162#comments</comments>
		<pubDate>Fri, 12 Mar 2010 22:41:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Compiler]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2162</guid>
		<description><![CDATA[Initializer for 'dataProvider': values of type mx.collections.IList cannot be represented in text.
Problem
The problem is we are not enclosing the reference to array collection with curly braces. The list component thinks that we are passing a string. So changing from "myData" to "{myData}".
Incorrect code:
PLAIN TEXT
XML:




    &#38;lt;fx:Declarations&#38;gt;


&#160;


&#38;lt;s:ArrayCollection id=&#34;myData&#34;&#38;gt;


&#38;lt;s:source&#38;gt;


&#38;lt;fx:Object label=&#34;Engineering&#34; data=&#34;ENG&#34;/&#38;gt;


&#38;lt;fx:Object label=&#34;Product Management&#34; data=&#34;PM&#34;/&#38;gt;


&#38;lt;fx:Object label=&#34;Marketing&#34; data=&#34;MKT&#34;/&#38;gt;


&#38;lt;/s:source&#38;gt;


&#38;lt;/s:ArrayCollection&#38;gt;


&#38;lt;/fx:Declarations&#38;gt;


&#160;


&#38;lt;s:List dataProvider=&#34;myData&#34; x=&#34;10&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Initializer for 'dataProvider': values of type mx.collections.IList cannot be represented in text.</p>
<p><strong>Problem</strong></p>
<p>The problem is we are not enclosing the reference to array collection with curly braces. The list component thinks that we are passing a string. So changing from "myData" to "{myData}".</p>
<p>Incorrect code:</p>
<div class="igBar"><span id="lxml-17"><a href="#" onclick="javascript:showPlainTxt('xml-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-17">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #ddbb00;">&amp;lt;</span>fx:Declarations<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>s:ArrayCollection id=&quot;myData&quot;<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>s:source<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>fx:Object label=&quot;Engineering&quot; data=&quot;ENG&quot;/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>fx:Object label=&quot;Product Management&quot; data=&quot;PM&quot;/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>fx:Object label=&quot;Marketing&quot; data=&quot;MKT&quot;/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/s:source<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/s:ArrayCollection<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/fx:Declarations<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>s:List dataProvider=&quot;myData&quot; x=&quot;10&quot; y=&quot;10&quot; width=&quot;575&quot; height=&quot;297&quot; skinClass=&quot;ActivityStreamSkin&quot;<span style="color: #ddbb00;">&amp;gt;</span><span style="color: #ddbb00;">&amp;lt;</span>/s:List<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Solution</strong></p>
<div class="igBar"><span id="lxml-18"><a href="#" onclick="javascript:showPlainTxt('xml-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-18">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>s:List dataProvider=&quot;{myData}&quot; x=&quot;10&quot; y=&quot;10&quot;&nbsp; width=&quot;575&quot; height=&quot;297&quot;&nbsp; skinClass=&quot;ActivityStreamSkin&quot;<span style="color: #ddbb00;">&amp;gt;</span><span style="color: #ddbb00;">&amp;lt;</span>/s:List<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2162</wfw:commentRss>
		</item>
		<item>
		<title>The default property contents must be contiguous</title>
		<link>http://www.actionscripterrors.com/?p=2161</link>
		<comments>http://www.actionscripterrors.com/?p=2161#comments</comments>
		<pubDate>Sun, 14 Feb 2010 07:32:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design View]]></category>

		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2161</guid>
		<description><![CDATA[The default property contents must be contiguous
When in Design View in Flex 4 you must keep the visual design MXML code together. Having a Script block right in the middle of it will create this error.
Incorrect:
PLAIN TEXT
XML:




&#60;?xml version="1.0" encoding="utf-8"?&#62;


&#60;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 


&#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; xmlns:s="library://ns.adobe.com/flex/spark" 


&#160; &#160; &#160; &#160; &#160; &#160;&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>The default property contents must be contiguous</p>
<p>When in Design View in Flex 4 you must keep the visual design MXML code together. Having a Script block right in the middle of it will create this error.</p>
<p>Incorrect:
<div class="igBar"><span id="lxml-21"><a href="#" onclick="javascript:showPlainTxt('xml-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-21">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:Application xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Visual markup code --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextInput <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"26"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"134"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"code1"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"302"</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">"Status of Mic"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Script tag interrupts and is located in the middle of visual markup code --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; private var swfpgno:int = 1;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Visual markup code --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextInput <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"26"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"77"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"mic1"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"302"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Correct:
<div class="igBar"><span id="lxml-22"><a href="#" onclick="javascript:showPlainTxt('xml-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-22">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:Application xmlns:<span style="color: #000066;">fx</span>=<span style="color: #ff0000;">"http://ns.adobe.com/mxml/2009"</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">s</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/spark"</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:<span style="color: #000066;">mx</span>=<span style="color: #ff0000;">"library://ns.adobe.com/flex/mx"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Script tag does not interrupt flow of design view code --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; private var swfpgno:int = 1;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fx</span>:Script<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Design View visual markup is in a continuous block --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextInput <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"26"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"134"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"code1"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"302"</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">"Status of Mic"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextInput <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"26"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"77"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"mic1"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"302"</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/s</span>:Application<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2161</wfw:commentRss>
		</item>
		<item>
		<title>The type selector &#8221; was not processed, because the type was not used in the application.</title>
		<link>http://www.actionscripterrors.com/?p=2160</link>
		<comments>http://www.actionscripterrors.com/?p=2160#comments</comments>
		<pubDate>Sat, 24 Oct 2009 00:03:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Compiler]]></category>

		<category><![CDATA[Compiler Warnings]]></category>

		<category><![CDATA[Runtime]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2160</guid>
		<description><![CDATA[The type selector 'Alert' was not processed, because the type was not used in the application.
Reason
The compiler is telling you that it can't find a case where the CSS that you are including inline or in a stylesheet is being used in the application. This is regardless if it will be used at another time. [...]]]></description>
			<content:encoded><![CDATA[<p>The type selector 'Alert' was not processed, because the type was not used in the application.</p>
<p>Reason<br />
The compiler is telling you that it can't find a case where the CSS that you are including inline or in a stylesheet is being used in the application. This is regardless if it will be used at another time. If it's not being used in the application it's not included at run time. </p>
<p>To remove this warning add the following line to the command line arguments:</p>
<p>-show-unused-type-selector-warnings=false</p>
<p>Note that "unused' type selectors aren't included to keep the file size down. </p>
<p>If you want to include every CSS type selector whether it's being used or not add the following line to the command line arguments:</p>
<p>-keep-all-type-selectors=true</p>
<p>To change command line arguments in Flash Builder navigate to Properties > Flex Compiler > Additional Compiler Arguments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2160</wfw:commentRss>
		</item>
		<item>
		<title>Error: Unexpected element spanwithin a span</title>
		<link>http://www.actionscripterrors.com/?p=2159</link>
		<comments>http://www.actionscripterrors.com/?p=2159#comments</comments>
		<pubDate>Thu, 22 Oct 2009 21:33:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Runtime]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2159</guid>
		<description><![CDATA[Error: Unexpected element spanwithin a span (sic)
Reason
Span's cannot contain other spans. Spans can only contain text. More information...
Spans should be closed off before starting a new one. 
Original Code:
PLAIN TEXT
XML:




public var myString:XML = &#60;div&#62;&#60;img source="images/spinning_loader1.swf"/&#62;&#60;span fontStyle="italic"&#62;&#60;span fontWeight="bold"&#62;Flex is a highly productive, free open source framework for building and maintaining expressive web applications...&#60;/span&#62;&#60;/span&#62;&#60;br/&#62;&#60;/div&#62;; 






Correct code:
PLAIN TEXT
XML:




&#60;flow:span&#62;Some [...]]]></description>
			<content:encoded><![CDATA[<p>Error: Unexpected element spanwithin a span (sic)</p>
<p>Reason<br />
Span's cannot contain other spans. Spans can only contain text. <a href="http://corlan.org/2009/01/19/how-to-use-text-layout-framework-in-flex-32-or-air-15/">More information...</a></p>
<p>Spans should be closed off before starting a new one. </p>
<p>Original Code:</p>
<div class="igBar"><span id="lxml-25"><a href="#" onclick="javascript:showPlainTxt('xml-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-25">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">public var myString:XML = <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;div<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;img</span> <span style="color: #000066;">source</span>=<span style="color: #ff0000;">"images/spinning_loader1.swf"</span><span style="font-weight: bold; color: black;">/&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;span</span> <span style="color: #000066;">fontStyle</span>=<span style="color: #ff0000;">"italic"</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;span</span> <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">"bold"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Flex is a highly productive, free open source framework for building and maintaining expressive web applications...<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/span<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/span<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;br</span><span style="font-weight: bold; color: black;">/&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/div<span style="font-weight: bold; color: black;">&gt;</span></span></span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Correct code:</p>
<div class="igBar"><span id="lxml-26"><a href="#" onclick="javascript:showPlainTxt('xml-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-26">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;flow</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span>Some text that is <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/flow</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;flow</span>:span <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">"bold"</span><span style="font-weight: bold; color: black;">&gt;</span></span>bold and <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/flow</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;flow</span>:span <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">"bold"</span> <span style="color: #000066;">textDecoration</span>=<span style="color: #ff0000;">"underline"</span><span style="font-weight: bold; color: black;">&gt;</span></span>bold and underlined<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/flow</span>:span<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2159</wfw:commentRss>
		</item>
		<item>
		<title>ArgumentError: newElement not of a type that this can be parent of</title>
		<link>http://www.actionscripterrors.com/?p=2158</link>
		<comments>http://www.actionscripterrors.com/?p=2158#comments</comments>
		<pubDate>Thu, 22 Oct 2009 05:57:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Runtime]]></category>

		<guid isPermaLink="false">http://www.actionscripterrors.com/?p=2158</guid>
		<description><![CDATA[ArgumentError: NewElement not of a type that this can be parent of
Reason
TextFlow markup is malformed. It does not allow certain elements to contain other elements. For example, a paragraph cannot contain another paragraph. It also occurs when you have line breaks in your markup tags, "\n\t\t\t\t". 
Incorrect:
PLAIN TEXT
XML:




&#60;s:RichEditableText x="93" y="22"&#62;


&#160; &#160; &#160; &#160; &#60;s:content&#62;


&#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>ArgumentError: NewElement not of a type that this can be parent of</p>
<p>Reason<br />
TextFlow markup is malformed. It does not allow certain elements to contain other elements. For example, a paragraph cannot contain another paragraph. It also occurs when you have line breaks in your markup tags, "\n\t\t\t\t". </p>
<p>Incorrect:</p>
<div class="igBar"><span id="lxml-29"><a href="#" onclick="javascript:showPlainTxt('xml-29'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-29">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"93"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"22"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:content<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">"http://ns.adobe.com/textLayout/2008"</span><span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Notice the line break after the content tag. </p>
<p>Correct:</p>
<div class="igBar"><span id="lxml-30"><a href="#" onclick="javascript:showPlainTxt('xml-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-30">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:RichEditableText <span style="color: #000066;">x</span>=<span style="color: #ff0000;">"93"</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">"22"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B; font-weight:bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:content<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;s</span>:TextFlow <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">"http://ns.adobe.com/textLayout/2008"</span><span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Read more <a href="http://corlan.org/2009/01/19/how-to-use-text-layout-framework-in-flex-32-or-air-15/">here</a>...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.actionscripterrors.com/?feed=rss2&amp;p=2158</wfw:commentRss>
		</item>
	</channel>
</rss>
