[flexcoders] Adding Components on the Fly

2006-08-25 Thread Faisal Abid



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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Adding Components on the Fly

2006-08-25 Thread Gordon Smith












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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Adding Components on the Fly

2006-08-25 Thread Faisal Abid




		Thank you for that, a little late but i also figured out something from yours, i was using the canvas.addchild, but you showed me i didnt have to , so thanks alot.
		

From: "Gordon Smith" [EMAIL PROTECTED]Sent: Friday, August 25, 2006 5:50 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Adding Components on the Fly
		
		
		
		
		

		


		

		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:

		
		

[EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Faisal AbidSent: Friday, August 25, 2006 1:16
PMTo: [EMAIL PROTECTED]ups.comSubject: [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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___