Hi all,
Im trying to translate an mxml binding tag to actionscript :
I got this mxml tag:
<mx:Binding source="model.podManager.getPod( mypodId ).destroy"
destination="handleDestroy" />
and its setter function :
private function set handleDestroy( destroy:Boolean ): void {
// some code
}
This works 100%. Im now trying to implement this binding in
actionscript. I have tried things like:
BindingUtils.bindSetter( handleDestroy, model.podManager.getPod(
mypodId ), "destroy", false );
and the setter function defined identically and it doesnt compile.
It complains about the "set" in the setter function. Removing
the "set" keyword makes it compile but the binding never fires and
the function is never executed.
What am I doing wrong? How can I make this work? Is there any
working example on implementing a binding to setter function in
actionscript ?
I need expert help :)
Thank you all in advance.
--
: : ) Scott __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Flex2: Binding from actionscript slangeberg
- RE: [flexcoders] Flex2: Binding from actionscript Stephen Gilson
Reply via email to
Not sure if it'll work, but you could try ChangeWatcher.watch().
Scott
On 7/19/06, Alex <[EMAIL PROTECTED]> wrote:

