Skip to main content
deborahb44958436
Inspiring
May 14, 2015
Answered

AS3 embedded tween only partially showing

  • May 14, 2015
  • 2 replies
  • 335 views

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; }

This topic has been closed for replies.
Correct answer kglad

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:

function onClick10f2(e: MouseEvent) { 

gdropBall1.gotoAndPlay(1);

addChild(gdropBall1)

gdropBall1.x = 356.10;

gdropBall1.y = 28; }

2 replies

deborahb44958436
Inspiring
May 14, 2015

Yup, that works. Thanks a bunch.

kglad
Community Expert
Community Expert
May 14, 2015

you're welcome.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 14, 2015

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:

function onClick10f2(e: MouseEvent) { 

gdropBall1.gotoAndPlay(1);

addChild(gdropBall1)

gdropBall1.x = 356.10;

gdropBall1.y = 28; }