Copy link to clipboard
Copied
When I addChild a movie clip with 60 frames embedded tween. only the last few frames are playing when running the SWF. why?
function onClick10f2(e: MouseEvent) {
addChild(gdropBall1)
gdropBall1.x = 356.10;
gdropBall1.y = 28; }
as soon as gdropBall1 is created it starts to play. ie, it doesn't need to be in the display to start playing.
so, use:
gdropBall1.gotoAndPlay(1);
function onClick10f2(e: MouseEvent) {
addChild(gdropBall1)
gdropBall1.x = 356.10;
gdropBall1.y = 28; }
Copy link to clipboard
Copied
as soon as gdropBall1 is created it starts to play. ie, it doesn't need to be in the display to start playing.
so, use:
gdropBall1.gotoAndPlay(1);
function onClick10f2(e: MouseEvent) {
addChild(gdropBall1)
gdropBall1.x = 356.10;
gdropBall1.y = 28; }
Copy link to clipboard
Copied
Yup, that works. Thanks a bunch.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now