Skip to main content
July 5, 2007
Answered

Setting up a function

  • July 5, 2007
  • 3 replies
  • 269 views
Hello Forums:

This problem is a little complex, and any help would be greatly appreciated.

I am a C++ Programmer, but flash actionscript is a bit confusing and alien to me.

Thanks in advance.


Situation:
I have a movie clip loaded on level1 (loadMovieNum).

There's a button.

If someone clicks on the button, I want _level1.play() to run, followed by a 1 second wait, and then ANOTHER movie clip is played.

Can someone give me a hand with this function script?

Thanks.

This topic has been closed for replies.
Correct answer Damon Edwards
if this is AS2 here is an interval you can use

3 replies

July 12, 2007
Hi:

Thanks for the reply.

I don't think what level1 does is any relevance. I more or less just need to know about the "waiting" and how to write a function in action script that will:

Click on a button
Play a child movie clip on level1
Wait
Load another movie clip on level1.

Please help.
Thanks.
Damon Edwards
Damon EdwardsCorrect answer
Inspiring
July 12, 2007
if this is AS2 here is an interval you can use
Inspiring
July 12, 2007
thats a very loose description Im afraid, _level1 is what it says it is, its a level within flash. You will need to point at movie.

So in short, you load your movie into _level1 ok, good, but flash needs to point at something to tell it to play.

By stating _level1.play() is like saying _level0.play() or _level123654.play() same result as you are telling the playhead to, well play.

What you need to be doing is _level1.themovieIveJustLoaded.play()
July 12, 2007
Anyone?