Hi there,

  I have a TitleWindow component called "TicketViewer" that starts
with this:

---------------------
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"; width="684"
height="556" cornerRadius="15" title="Ticket Contents"
borderColor="#f4f4ff" showCloseButton="true" alpha="1.0"
backgroundColor="#ffffff" close="closeTicketViewer()">
        <mx:Script>                
        <![CDATA[
                import mx.managers.PopUpManager;
        
                public var ticketID:int = 0;
----------------------


  From the main mxml file, I'm creating an instance of the TitleWindow
with:

var ticketViewer:IFlexDisplayObject = PopUpManager.createPopUp( this,
TicketViewer, true );


  My question is, how do I access the ticketID variable inside of the
ticketViewer object from the main application?  Intuitively, I thought
it would be:

var ticketViewer:IFlexDisplayObject = PopUpManager.createPopUp( this,
TicketViewer, true );
ticketViewer.ticketID = 2;

  Unfortunately it seems that such is not the case!

Thanks again.
Alex





Reply via email to