If you’re going to instantiate a class via string you need to make sure that it was linked in.  Somewhere in your app just declare a dummy variable of the same type as the value of pop_1.

 

var dummy : frm_matriculas;

 

That should get the class linked in and the createPopUp should work.

 

Matt

 


From: FernandoLobos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 5:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] call popup with string

 

i try call pop via :


   var popup12 = mx.managers.PopUpManager.createPopUp(_root,
frm_matriculas, modal, {deferred: true});


all ok !


But this way


   var popup12 = mx.managers.PopUpManager.createPopUp(_root,
frm_matriculas, modal, {deferred: true});


function llama_popup (pop_1:object ){

   var popup12 = mx.managers.PopUpManager.createPopUp(_root, pop_1,
modal, {deferred: true});

}

nuevopopup:object

nuevopopup = "frm_matriculas"
llama_popup(nuevopopup)

---------
nothing, can i do for call popup function with string ?


Reply via email to