Thanks, that did it - I had tried a Java-style cast

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

which didn't work, so I gave up on that avenue :)

Cheers.
Alex

--- In [email protected], "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> You need to cast
> 
> var ticketViewer:TicketViewer=
TicketViewer(PopUpManager.createPopUp( this,
> TicketViewer, true));
> ticketViewer.ticketID = 2;
> 
> Peace, Mike
> 
> On 1/11/07, Alex <[EMAIL PROTECTED]> wrote:
> >
> >   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
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>


Reply via email to