Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS3 embedded tween only partially showing

Participant ,
May 14, 2015 May 14, 2015

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

TOPICS
ActionScript
297
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 14, 2015 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; }

Translate
Community Expert ,
May 14, 2015 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; }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 14, 2015 May 14, 2015

Yup, that works. Thanks a bunch.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 14, 2015 May 14, 2015
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines