i have tried the same

its worked for me..

for your reference i have attached the files with this mail

::

["SimpleTitleWindowExample" is titlewindow file name]


Gnanz.../
http://gnanz-flexworld.blogspot.com



reji wrote:
> Hai GnanaPrakasam,
>
> while doing this way getting error like
>
>  Variable "SimpleTitleWindowExample" is not defined.
>       at global/flash.utils::getDefinitionByName()
>
> i am unable to trace this error. if u help me better...
>
>
>
> On Jul 28, 5:28 pm, GnanaPrakasam T <gnanaprakasa...@gmail.com> wrote:
>   
>> ok Fine..
>> then use the following lines Reji.
>>
>>            var
>> dynamicalyLoad:Class=*getDefinitionByName*('SimpleTitleWindowExample')
>> *as Class;  *      
>>
>>      PopUpManager.createPopUp(this,dynamicalyLoad,true);
>>
>> *getDefinitionByName* will do the trick
>>
>> Hope this will help to you
>>
>> Happy Coding :-)
>>
>> Gnanz...
>>
>> http://gnanz-flexworld.blogspot.com
>>
>>
>>
>> reji wrote:
>>     
>>> Hai        GnanaPrakasam
>>>       
>>> I worked out what u told but it is not working.
>>> actually 'form1' is a component title window.I want to popup the title
>>> window dynamically
>>> thats why i am storing variable.so any idea...i cant hard code class
>>> name in PopUpManager.createPopUp(this,dynamicalyLoad,true);
>>>       
>>> On Jul 28, 3:47 pm, GnanaPrakasam T <gnanaprakasa...@gmail.com> wrote:
>>>       
>>>> Is that Form1 is a componet in current Applciation?
>>>>         
>>>> try          this['orm1']   instead of   Class(str)  and let me know
>>>> whether its working or not
>>>>         
>>>>        PopUpManager.createPopUp(this,this['form1'],true);
>>>>         
>>>> Gnanz.../http://gnanz-flexworld.blogspot.com
>>>>         
>>>> reji wrote:
>>>>         
>>>>> Hi All
>>>>>            How to create String to class in popupmanager.
>>>>>           
>>>>> for example i am trying
>>>>>                         var str:String="form1";
>>>>>                    PopUpManager.createPopUp(this,Class(str),true);
>>>>> is not working.If any one know just tell me
>>>>>           
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: popup.rar
Description: Binary data

Reply via email to