fx:Binding must be a child of the root tag.

‘<fx:Binding>’ must be a child of the root tag.

Cause
The tag cannot be nested more than one level deep.

Incorrect:

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
		 xmlns:s="library://ns.adobe.com/flex/spark" 
		 xmlns:mx="library://ns.adobe.com/flex/mx">
	
	<fx:Declarations>
		<fx:Binding source="EffectManager.mx_internal.activeEffects" destination="effectsArray"/>
		<fx:Array id="effectsArray" />
	</fx:Declarations> 
</s:Group>

Correct:

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
		 xmlns:s="library://ns.adobe.com/flex/spark" 
		 xmlns:mx="library://ns.adobe.com/flex/mx">
	
	<fx:Binding source="EffectManager.mx_internal.activeEffects" destination="effectsArray"/>

	<fx:Declarations>
		<fx:Array id="effectsArray" />
	</fx:Declarations> 
</s:Group>

About Judah

Please note in the comments if this has helped you or not.
This entry was posted in Compiler. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Highlight your code before posting code:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">