User controls

Thank you Kirupa for the code to embed a flash movie in html at
http://www.kirupa.com/developer/flash5/html.asp

It works well. I would, however, like my users to have control to start the movie when they want. At the moment it starts when it loads up. I’d like to have a button for users to click to start the movie.

How can I do this?

Also the sound plays in IE but not in Netscape 6.2. I cannot figure out why.

Thank you

DG

Have Stop action on the beginig of your movie (at the point that you want the users choose to play or not), then add a buntton and this code (on the button)

on (press){
   play();
}

=)

Thank you Guigo

I’ll give it a try.

DG

If you find any dificulties, don´t exitate to ask me again.

And by the way, Welcome to Kirupa forum, I´m sure you will stay here for long. There is no flash forum like this one, everyone here is friendly and helpfull, if not hilarious (see Phil Jayham posts).

Glad to help.

=)

I have something to ask. The movie doesnt stop, then go on when I click “Play movie” It just goes on

I don´t understand you. Can you explain it a lil better?

=)

*Originally posted by Guig0 *
**If you find any dificulties, don´t exitate to ask me again.

And by the way, Welcome to Kirupa forum, I´m sure you will stay here for long. There is no flash forum like this one, everyone here is friendly and helpfull, if not hilarious (see Phil Jayham posts).

Glad to help.

=) **

Guigo

The button works, however, the sound starts before the images in the movie. I’d like both to start together.

Thanks for your help.

DG

place the keyframe that contains the sound one frame after the keyframe that contains the button

=)

:slight_smile: Thanks. I got it to work.

<:} Merry Christmas to you too.

DG