Scope refers to the parent/child relationships of components in an 
application.  For instance a DataGrid may be the parent of an 
itemRenderer component.  However, to access the properties of the 
DataGrid from inside the itemRenderer, you can't just refer directly 
to the DataGrid properties like: myDataGrid.selectedItem, since the 
DataGrid isn't in the same scope as the itemRenderer.  In this case 
you could use: parentDocument.myDataGrid.selectedItem.

If you want, go ahead and post what your code currently looks like, 
and we'll get you fixed up.  It's probably just a minor syntax issue.

-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/
 



Reply via email to