Does it have to be MXML?

 

            <mx:Script>

                        <![CDATA[

                                    import mx.managers.PopUpManager;

                                    import mx.containers.TitleWindow;

                                    

                                    [Bindable]

                                    private var titleWindow:TitleWindow;

                                    

                                    private function someFunction():void

                                    {

                                                titleWindow = new
TitleWindow();

 
PopUpManager.addPopUp(titleWindow);

                                    }

                        ]]>

            </mx:Script>

 

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

<http://www.resource.com/> www.resource.com <http://www.resource.com> 

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

________________________________________________________________________
____
This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.


________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Thursday, October 25, 2007 5:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add reference in MXML without adding to children

 

Hi, does anyone know if it's possible to create a reference in MXML (so
that you can later use it as a variable and also easily use bindings)
but not add it to the parent's children?

 

i.e.

 

<mx:Canvas>

 

            <mx:Script>

            Private function someEvent()

            {

                        PopUpManager.addPopUp(titleWindow);

            }

            </mx:Script>

 

            <mx:TitleWindow/>

</mx:Canvas>

 

I don't want the title window to be shown inside the canvas, I just want
to create it as a variable.

 

Thanks,

 

Mark

 

 

 

 

Reply via email to