Seems to work fine, thanks alot :)
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Each mxml file is its own document and has its own variable scope. > Therefore there is no property definied in OptionsFiche.mxml, it is > defined in ListingTerrains.as or the main mxml file. > > > > > > parentDocument is usually the answer. > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Nicolas Boulet-Lavoie > Sent: Friday, March 23, 2007 10:59 AM > To: [email protected] > Subject: [flexcoders] Basic question > > > > Hello, > > Here's my problem : Access of undefined property grilleTerrainsACDP. I > try to reach a public variable from inside a component (private method). > > The problem is in this method (from the OptionsFiche.mxml component): > public function trierTerrainsPromoteur():void { > var triTerrains:Sort = new Sort(); > triTerrains.fields= [new SortField("numero")]; > grilleTerrainsACDP.sort = triTerrains; > grilleTerrainsACDP.refresh(); > } > > The grilleTerrainsACDP variable is defined in my AS source : > > [Bindable] > public var grilleTerrainsACDP:ArrayCollection; > > This source file in included, from my main application, with this > sentence : > > <mx:Script source="actionscript/ListingTerrains.as"/> > > Here's my application structure: > > O---actionscript > | > |-----ListingTerrains.as > | > O---components > | > |-----OptionsFiche.mxml (trying to call from here). > | > O---MainApp.mxml > > Any suggestion? :) > Thanks! > Nicolas >

