[flexcoders] Call Popup via string var

2005-06-17 Thread Fernando Lobos



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:objectnuevopopup = frm_matriculasllama_popup(nuevopopup)-nothing, can i do for call popup function with 
string ?








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
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] Call Popup via string var

2005-06-17 Thread Matt Chotin










You need to make sure that frm_matriculas
is still linked into your application. If Flex does not see a reference to
that class it will not put it in the SWF for you.



Add something like this line to your
Application:

var dependency : frm_matriculas; 



HTH,

Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Fernando Lobos
Sent: Friday, June 17, 2005 2:21
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call Popup
via string var





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 ? 










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.