English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

...get the movie to start when i click a button in the movie? what script things to I have to have in the actions inspector?

2007-02-19 13:22:45 · 2 answers · asked by me 2 in Computers & Internet Programming & Design

hey rex, i tried that, but when i publish it, it goes by itself, and my button does nothing, yet when im in the regular design mode, the button starts it right up.

2007-02-19 13:33:14 · update #1

2 answers

On the button action:

on(release) {
play();
}

2007-02-19 13:27:05 · answer #1 · answered by Rex M 6 · 0 0

Create a new layer and name it "actions". On frame 1 of the actions layer, add this script; stop();

Now add the following script to the button:

on (release) {
gotoAndPlay (2);
}

If you now test the movie, you'll notice that the animation doesn't begin until the button is pressed.

2007-02-20 06:22:41 · answer #2 · answered by A* 7 · 0 0

fedest.com, questions and answers