This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=213 as retrieved on 1 Aug 2007 11:29:00 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:36ucEHcpZTYJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D213+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=34


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ Problem with the RotationInterpolator events

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 smile.gif

++

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 wink.gif

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!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)