Posted by: SunShine33 Dec 4 2006, 08:32 AM
Hi,
I'm a a Sandy beginner !
I make test on Sandy helping me with the cube tutorial.
My
cube rotate and I want when the movement finished to redo this. I
emplements the events and add the listener, but the function it's never
called.
CODE
var tg4:TransformGroup = new TransformGroup();
var ease4:Ease = new Ease();
ease4.linear();
var rotint4:RotationInterpolator = new RotationInterpolator( ease4.create(), 50 );
rotint4.setAxisOfRotation(new Vector(0,0,1));
rotin4.addEventListener( BasicInterpolator.onEndEVENT, this, _onEnd );
tg4.setTransform( rotint4 );
The function _onEnd :
CODE
function _onEnd(e:InterpolationEvent ){
trace("onEnd");
e.getTarget().redo();
}
The trace it's never done.
What mistake I do ?
Thx
Posted by: SunShine33 Dec 4 2006, 09:15 AM
I make a change :
rotin4.addEventListener( BasicInterpolator.onEndEVENT, this, _onEnd );
by
rotin4.addEventListener( InterpolationEvent.onEndEVENT, this, _onEnd );
but it don't work to.
Sorry, I found my mistake ... orthograph ... sorry !
Posted by: stryn Feb 23 2007, 08:29 PM
QUOTE(SunShine33 @ Dec 4 2006, 10:15 AM)

I make a change :
rotin4.addEventListener( BasicInterpolator.onEndEVENT, this, _onEnd );
by
rotin4.addEventListener( InterpolationEvent.onEndEVENT, this, _onEnd );
but it don't work to.
Sorry, I found my mistake ... orthograph ... sorry !
hey,
i have the same problem, how did you fix it?
... cant help myself ;-)
Posted by: kiroukou Feb 23 2007, 08:55 PM
Hi and welcome,
Can you provide a piece of code? To illustrate your problem?
If you can locate it more precisely and provide a smaller code (so more readable) it's always better 
++
Posted by: Petit Feb 24 2007, 02:03 AM
QUOTE(stryn @ Feb 23 2007, 09:29 PM)

i have the same problem, how did you fix it?
Hey stryn!
I think you're reading too fast

SunShine33 said:
QUOTE
Sorry, I found my mistake ... orthograph ... sorry !
It was a typo and everyone who ever typed more than ten lines of code will recognize a hard to find bug and sympathize.
> rotint != rotin <
So I guess your problem is another.
Give us some code to chew on!