That should be correct Julien, but there's no point in importing, if you are going to use the fully qualified classname anyway...
julien castelain wrote: > hi ilteris, > > maybe this could do it : > > import ascb.util.Proxy; > > function finishAnimation(_mc:MovieClip) { > var scope = this; > var tween4 = new Tween(image, "_alpha", Regular.easeOut, > 100, 0, 3, true); > tween4.onMotionFinished = ascb.util.Proxy.create(scope, > endOfMotion, _mc); > } > > function endOfMotion(_mc:MovieClip) { > trace(_mc); > } > > not sure though ... > cheers > > On 8/14/06, ilteris kaplan <[EMAIL PROTECTED]> wrote: >> Hello List, >> I am trying to pass a parameter to my function with the help of >> delegate or proxy but I couldn't succeed in both :( >> >> I have read http://www.person13.com/articles/proxy/Proxy.htm but >> still couldn't quite figure out how I should do it. Honestly I begin >> to feel like dumb four in the morning. >> >> please let me know what I am missing here!! >> >> best, >> ilteris. >> >> >> import ascb.util.Proxy; >> >> function finishAnimation(_mc:MovieClip) { // mc is my movieclip I am >> passing inside of this function >> // I am trying to pass _mc as a parameter to endOfMotion() method >> var tween4 = new Tween(image, "_alpha", >> mx.transitions.easing.Regular.easeOut, 100, 0, 3, true); >> tween4.onMotionFinished = ascb.util.Proxy.create(this, >> endOfMotion, >> _mc); >> } >> >> function endOfMotion(_mc:MovieClip) { >> // this.obj.canv.closeCanvas(); >> trace(_mc); // when I trace it, it still gives me [Tween] >> >> } >> >> >> _______________________________________________ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com