i will give it a try Alex, thanks! On Tue, Mar 11, 2008 at 3:50 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> Glad you got it working, but I vote with Ralf. Having the popup > dispatch an event allows for reuse of that popup in other applications and > places within the current application. > > > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Derrick Anderson > *Sent:* Tuesday, March 11, 2008 11:55 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Re: how to call a function in a popup parent? > > > > passing an instance to the parent class as a variable is exactly what i > did, thanks guys! > > On Tue, Mar 11, 2008 at 2:26 PM, actionscript_czar <[EMAIL PROTECTED]> > wrote: > > Since it looks like MiniTextEditor is a custom component, you could > make a public variable, or at least a public setter, inside your > component so that a reference is available in your component. Then > you would instantiate it like this: > > textPopUp = new MiniTextEditor(); > textPopUp.creator = this; > PopUpManager.addPopUp( textPopUp, this ); > > Then the variable should be available to you. > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Derrick > > > Anderson" <[EMAIL PROTECTED]> wrote: > > > > hi, > > > > i create a popup like this from file A: > > > > textPopUp = > > MiniTextEditor( > > PopUpManager.createPopUp(this, MiniTextEditor)); > > > > in this case 'this' is file B: > > > > from my popup I am trying to call a function in file A, and since > the parent > > i pass to the popup is not actually the 'parent' - i can't figure > out how to > > reference a function in the actual parent. any ideas? > > > > d. > > > > > > >