The warning is because we don’t know what the type of myModel is (because application is typed as Object).  You can avoid the warning by casting MyApp(mx.core.Application.application).myModel.someProperty where MyApp is the type of your Application file.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Clint Modien
Sent: Sunday, July 03, 2005 6:01 PM
To: [email protected]
Subject: Re: [flexcoders] Binding to Model in Application

 

I'm pretty sure the bindings don't get created for anything past 2nd level nested properties...

obj.var   <--- binding to this would work

obj.var.nestedVar <---- binding to this wouldn't work

as a workaround..

try creating a variable in your popup window and set your bindings to that

then set the var in the initialization object for your popup window (or at any other point for that matter because it's bound)



On 7/3/05, JesterXL <[EMAIL PROTECTED]> wrote:

I'm binding some CheckBox's to a Model in my Application.  The CheckBox'
reside in a PopUp.  They reference the original model like so:

mx.core.Application.application.myModel.someProperty.

It works great, but I'm getting warnings saying that changes to all of my
"unknown" properties won't trigger a change.  Is this the compiler just
getting confused?

--JesterXL




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to