[Papervision3D] Problem using caurina.Tweener class

Andy Zupko azupko at zupko.info
Fri May 16 10:21:54 PDT 2008


onComplete can take parameters -

Tweener.addTween(obj, {alpha:1, onComplete:handleOnComplete,  
onCompleteParams:obj});

function onComplete(object:Object):void{...}


On May 16, 2008, at 1:11 PM, Alex Diaz wrote:

> I have 20 cubes and I apply a Tween to each one, but now I need to  
> know which cube is calling to the onComplete event, to do another  
> movement, but only to that cube....
>
> I have tried with:
>             for (var p in Tweener){
>                 trace("TWEENER: " + p+"="+Tweener[p]);
>             }
> but hasn't worked...
> and either I can use the parameters... cos onComplete don't take  
> parameters...
>
>             private function finish():void {
>
> Any suggest?
>
> I suppose that I need to access a parameter inside Tweener class,  
> but I don't know how I can do that.
>
> Thanks in advance...
> Alex
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org




More information about the Papervision3D mailing list