0

I create document 3.0 AC. I paint circle in 1 frame and symbol "Movieclip" name "circle" and double click,i do create shape tween circle. I write script gotoAndPlay("startcircle") from movieclip "circle",but not working next frame 2 movieclip name "circleup".

First movieclip -> circle begin left run to move right, second movieclip circle run size up circle.

Test movie: First movieclip -> circle begin left run to move right, second movieclip circle not running.

enter image description here

enter image description here

Sorry my bad english.

1 Answer 1

0

Your circle needs to tell the thing containing it (its parent) to gotoAndPlay. This isn't very neat, but you can do:

import flash.display.MovieClip;
(parent as MovieClip).gotoAndPlay("startcircle");

(You have to tell Flash the parent is a MovieClip, because simpler DisplayObjects might not actually have frames to gotoAndPlay. If you passed a reference to the parent to circle, you wouldn't need to use as.)

Sign up to request clarification or add additional context in comments.

2 Comments

Same not working. Circle.fla (7 KB) mega.co.nz/…
Ah, sorry. I got the order of your containers mixed up. Try my edited answer?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.