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. 



Reply via email to