Random movement/movie clips/buttons

ok, the thing that needs to be clicked is a movie clip with code attached to it which makes it randomley move about the screen.

inside this movie clip is a button,which,when clicked moves to the next frame inside the movie clip and plays a little animation.

after that animation has played i want the whole movie to go to a different scene. i tried adding

[AS]gotoAndPlay(“flower”, 1);[/AS]

at the end of the movie clip but that doesnt work. I also tried sacrificinh having a little animation and instead of telling the button inside the movie clip to go to the next frame and play the animation, made it go to another scene but ,alas, that did not work either. If you understand whats going wrong or what i haven’t done then please help me.

( the random movement code can only be applied to movie clips ,so haveing it just as a button wont work).

So basically what i want to happen is, when you click the movie clip it will go to a different scene.

any ideas??

Give the first frame in your “flower” scene a label (right click on the frame and open the properties panel). Then on your button use…[AS]_root.gotoAndPlay(“flowerSceneLabel”);[/AS] (where flowerSceneLabel is the label name you gave the first frame in that scene)

This question (or similar) has been asked many times before, using the forum search feature you coulda saved yourself waiting time :wink:

yay, it works now.

sorry for not searching, i usually do but you know how it is when your desperate and confused.

*Originally posted by mcnasty *
**yay, it works now.

sorry for not searching, i usually do but you know how it is when your desperate and confused. **

Glad to hear it works.

And yeah I know how that is, but I usually just put a hole in my wall with my head (-: