Hello all,

I have an MXML component that has an mxml binding to a setter function 
like this:

<mx:Binding source="model.podManager.getPod( mypodId ).destroy" 
destination="handleDestroy" />

and a setter function defined :

private function set handleDestroy( destroy:Boolean ): void {
          // some code         
}

This works 100% but I need to create this binding in an actionscript 
component; I have tried the following:

BindingUtils.bindSetter( handleDestroy, model.podManager.getPod( 
this.mypodId ), "destroy", false );

and having the same setter function. It complains about the setter 
function. If I remove the "set" keyword (on the setter function) it 
compiles but does nothing ( the binding doesnt seem to enter the function )

How can I create this binding from actionscript? Can someone give a 
working example on how to create a binding to a setter function in 
actionscript? It should be easy but I have found no documentation at all 
on this. I need the help of an expert.

Thank you very much.

Alberto




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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