I have as a main application setted "main.mxml" which contains the follow declaration :
[Bindable]
[Embed(source="../images/common/user.png")]
public var userIcon : Class;
I have another module, on which i wish to access it as a button icon. I have tried with the follow definition, but it doesnt work:
<s:Group width="100%" height="29">
<s:layout>
<s:VerticalLayout horizontalAlign="center"/>
</s:layout>
<s:Button id="buttonLoad" width="80%" label="Loading" icon="{ main.userIcon }"/>
</s:Group>
- How to access the declaration inside main.mxml from the other modules ?