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.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 



Reply via email to