<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.1" -->
<rss version="0.92">
<channel>
	<title>Flash Action Script Error Repository</title>
	<link>http://www.actionscripterrors.com</link>
	<description>A library of solutions to Actionscript, Flash, Flex and AIR</description>
	<lastBuildDate>Tue, 01 Jun 2010 00:50:46 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Multiple sets of visual children have been specified for the component tag</title>
		<description>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. 

[xml]


	
		
			
		
	




[/xml] </description>
		<link>http://www.actionscripterrors.com/?p=2170</link>
			</item>
	<item>
		<title>Invalid component name &#8216;default&#8217;: component name must be legal ActionScript class name.</title>
		<description>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>
		<link>http://www.actionscripterrors.com/?p=2168</link>
			</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>
		<description>'' 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 ...</description>
		<link>http://www.actionscripterrors.com/?p=2167</link>
			</item>
	<item>
		<title>ReferenceError: Error #1069: Property leadingModel not found on String and there is no default value.</title>
		<description>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:
[xml]
	
		
			
				
				
				
					link
				
			
		
	
[/xml]

Correct:
[xml]
	
		
			
				
					link
				
			
		
	
[/xml] </description>
		<link>http://www.actionscripterrors.com/?p=2166</link>
			</item>
	<item>
		<title>TypeError: Bad element of type int passed to mxmlChildren 	at flashx.textLayout.elements::FlowGroupElement/set mxmlChildren</title>
		<description>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. 

[xml]	
		
			
				
 						{data.contentCount} 
			
		
	[/xml]

Correct:
[xml]	
		
			
				
 						{String(data.contentCount)} 
			
		
	[/xml] </description>
		<link>http://www.actionscripterrors.com/?p=2165</link>
			</item>
	<item>
		<title>TypeError: Bad element of type flashx.textLayout.elements::LinkElement passed to mxmlChildren</title>
		<description>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:
[xml]
	
		{data.username} posted 18 photos to Web 2.0 Silicon Valley Design Team
	[/xml]

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.

[xml]
	
		
			
				{data.username} posted 18 photos ...</description>
		<link>http://www.actionscripterrors.com/?p=2164</link>
			</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>
		<description>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... ...</description>
		<link>http://www.actionscripterrors.com/?p=2163</link>
			</item>
	<item>
		<title>Initializer for &#8216;dataProvider&#8217;: values of type mx.collections.IList cannot be represented in text.</title>
		<description>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:
[xml]    &#60;fx:Declarations&#62;

&#60;s:ArrayCollection id="myData"&#62;
&#60;s:source&#62;
&#60;fx:Object label="Engineering" data="ENG"/&#62;
&#60;fx:Object label="Product Management" data="PM"/&#62;
&#60;fx:Object ...</description>
		<link>http://www.actionscripterrors.com/?p=2162</link>
			</item>
	<item>
		<title>The default property contents must be contiguous</title>
		<description>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:[xml]



	
	

	
	
		
	

	
	

[/xml]


Correct:[xml]


	
	
		
	

	
	
	

[/xml] </description>
		<link>http://www.actionscripterrors.com/?p=2161</link>
			</item>
	<item>
		<title>The type selector &#8221; was not processed, because the type was not used in the application.</title>
		<description>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 ...</description>
		<link>http://www.actionscripterrors.com/?p=2160</link>
			</item>
	<item>
		<title>Error: Unexpected element spanwithin a span</title>
		<description>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:
[xml]public var myString:XML = Flex is a highly productive, free open source framework for building and maintaining expressive web applications...;
[/xml]

Correct code:
[xml]Some text ...</description>
		<link>http://www.actionscripterrors.com/?p=2159</link>
			</item>
	<item>
		<title>ArgumentError: newElement not of a type that this can be parent of</title>
		<description>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:
[xml]	
		
			[/xml]
Notice the line break ...</description>
		<link>http://www.actionscripterrors.com/?p=2158</link>
			</item>
</channel>
</rss>
