<mx:Button click="clickHandler(event)"/>

 

<mx:Script>

 

    private function clickHandler(event:Event):void

    {

        var myImage:MyImage = new MyImage();

        myImage.source = ...;

        addChild(myImage);

    }

 

</mx:Script>

 

- Gordon

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Faisal Abid
Sent: Friday, August 25, 2006 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adding Components on the Fly

 

I have created a simple component which extends the image component, and i Want to add it to the application on the fly. Eg when i clikc start, flex will create the component for me and then i can interact with it, how can this be done.

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to