import mx.core.Application;
-TH
--- In [email protected], Dave Cates <dave.ca...@...> wrote:
>
> Hi Tracey,
>
> Thanks for your advice.
>
> The compiler is ing access of undefined property Application¹
>
> Any ideas?
>
> Thanks,
> Dave.
>
> From: Tracy Spratt tr...@...
> Reply-To: [email protected]
> Date: Fri, 7 Aug 2009 10:31:06 -0400
> To: [email protected]
> Subject: RE: [flexcoders] PopUp databinding - possible?
>
>
>
>
>
> Sure. In the pop-up, define a bindable variable, say
> [Bindable]private var _app:MyMainAppFileName;
>
> In a creation complete handler, assign:
> _var = Application.application as MyMainAppFileName;
>
> Now you can bind to any bindable property in MyMainAppFileName
>
> If that is backwards to what you want, then I advise dispatching
events from
> the Pop-up. Remember, binding is just an event mechanism that is
created by
> the compiler.
>
>
>
> Tracy Spratt,
> Lariat Services, development services available
>
>
> From: [email protected] [mailto:[email protected]]
On
> Behalf Of Dave Cates
> Sent: Friday, August 07, 2009 10:01 AM
> To: [email protected]
> Subject: [flexcoders] PopUp databinding - possible?
>
>
>
> Hi all,
>
> I have an mxml component that I am displaying via the popup manager
method.
>
> But, I have data that is sent to this popup that needs to be data
bound
> database updates etc.
>
> So, how do you databind to the vars inside the popup? If the MXML
component
> was on the stage as normal I¹d have no problems but the popup, my
nature, is
> created at run-time.
>
> So is it possible and if so, how?!
>
> Thanks!
> Dave.
>
>
>
> >
>