I think you want parentDocument, unless your Button is inside an <mx:Component> tag.
Gordon Smith Adobe Flex SDK Team ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, April 22, 2008 3:34 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: onclick call not able to access parent doc That looks correct. What is the error? Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Tuesday, April 22, 2008 4:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: onclick call not able to access parent doc I tried that and get a error ! Can you explain further --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Jason B" <[EMAIL PROTECTED]> wrote: > > Thanks Tracy > > do you mean like this? > <mx:Button label="Edit" click="outerDocument.launchreferencetable();" /> > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <tspratt@> wrote: > > > > "Component" creates its own scope. Use "outerDocument" to reference the > > parent scope. > > > > > > > > Tracy > > > > > > >