Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 117

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

Flex calls the
IMXMLObject.initialized()
component. The following example uses this component:
<?xml version="1.0"?>
<!-- mxmlAdvanced/MainInitObject.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:MyComp="myComponents.*"
creationComplete="initApp();">
<mx:Script>
<![CDATA[
public function initApp():void {
myTA.text="myFC.x = " + String(myFC.x);
}
]]>
</mx:Script>
<MyComp:ObjectComp id="myFC" x="1" y="2" z="3"/>
<mx:TextArea id="myTA"/>
</mx:Application>
Because Flex calls the
of the component, the
IMXMLObject.initialized()
initialized, x = 1
IMXMLObject.initialized()
function in the implementation of the
trace()
method outputs the following:
method after it initializes the properties of the
method after it initializes the properties
About interfaces
117

Advertisement

Table of Contents
loading

Table of Contents