createPopUp requires a Class.  You can use getDefinitionByName to
convert a string to a class as long as that class got linked into the
SWF somehow.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Fernando Lobos
Sent: Friday, June 06, 2008 5:56 PM
To: [email protected]
Subject: [flexcoders] Call component for String name

 

hi, i try to call a component titlewindows with you name but in string

 

 

example

 

 

 

var object1:Object

 

Object.name = "frm_titlewindows_sales"

 

puWin = PopUpManager.createPopUp(this, Object, true);

 

Reply via email to