SWFLoader can load a full application inside another. How do you get access its public properties and methods?
Here is an example for doing this…..
/** SWFLoaded.mxml */
<?xml version=”1.0″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml“
backgroundColor=”yellow”>
<mx:Script><![CDATA[
[Bindable]public var varOne:String = “This is a public variable”;
public function setVarOne(newText:String):void {
varOne=newText;
}//setVarOne
]]></mx:Script>
<mx:Label id=”lblOne” text=”I am here”/>
<mx:Label text=”{varOne}”/>
<mx:Button label=”Nested Button”
click=”setVarOne(‘Nested [...]
Archive for December, 2007
How to communicate between App loaded by SWFLoader
Posted in Flex on December 28, 2007 | 7 Comments »