Hi Rick, Make sure that you consider the scope of you primary UI component. Depending on where you are calling the code from, you may have to reference it like parentDocument.mainPanel or Application.application.mainPanel (this one requires - import mx.core.Application).
-TH --- In [email protected], Rick Root <[EMAIL PROTECTED]> wrote: > > Tim Hoff wrote: > > > > Here's some code if you're interested: > > > > http://www.cflex.net/showfiledetails.cfm? ChannelID=1&Object=File&objectID=448 > > <http://www.cflex.net/showfiledetails.cfm? ChannelID=1&Object=File&objectID=448> > > Tim, thanks.. I'm trying to use that code but having a problem with this > line: > > // Change this to the id of the container that you want to be > the parent of the popup. > popUpParent = mainCanvas; > > I changed "mainCanvas" to "mainPanel" because my primary UI component is > a panel with ID="mainPanel" > > But when I try to compile I get: > > Severity Description Resource In Folder Location Creation Time Id > 2 1120: Access of undefined property mainPanel. DukeMagSearch_ro.mxml > DukeMagSearch_ro line 20 August 1, 2006 8:03:01 AM 126 > > What am I doing wrong here? > > Rick > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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: http://docs.yahoo.com/info/terms/

