all groups > flash actionscript > february 2007 >
You're in the

flash actionscript

group:

AS tweens from the timeline?



AS tweens from the timeline? Brian
2/25/2007 2:01:59 PM
flash actionscript: I have a file that I have a timeline animation in. At some poing in the
animation, I would like to use AS to tween something over the stage. I
have the following on that frame:

function tracefunc(){
trace("please make this work");
}

ZigoEngine.doTween({target:myBox, _x:115, _y:270, _width:79.9,
_height:68.6, seconds:0.2, ease:"easeInQuad", func:"tracefunc"});


On the first frame of the file I have:
import com.mosesSupposes.fuse.*
ZigoEngine.register(Shortcuts,Fuse,PennerEasing,FuseItem);


If I put a stop on the first frame, place the box there also, it works
fine. But as soon as I trigger this while the movie is playing, even
though the myBox is on another frame and present, it does not work. I
think I had this problem before, where AS tween do not work while the
timeline is playing? Is that possible?

Thank you for any help!
Re: AS tweens from the timeline? LuigiL
2/26/2007 12:00:00 AM
You need to repeat that import statement (only works for the current frame).
import com.mosesSupposes.fuse.*
ZigoEngine.register(Shortcuts,Fuse,PennerEasing,FuseItem);
function tracefunc(){
trace("please make this work");
}
ZigoEngine.doTween({target:myBox, _x:115, _y:270, _width:79.9,
_height:68.6, seconds:0.2, ease:"easeInQuad", func:"tracefunc"})

AddThis Social Bookmark Button