Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-23-2002, 01:14 PM   #1
coala
Registered User
 
Join Date: Sep 2002
Location: Stockholm, Sweden
Posts: 2
Send a message via AIM to coala Send a message via Yahoo to coala
Default How to randomize to play a mc in flash 4?

Hi,
I would like to start my fla movie with a introscene, before entering the main movie.

In that introscene I have 4 mc's and want flash to randomize to play one of them, before continuing.

Anyone knows how to do this in old flash 4 please? I would be so greatful

Thanks,

C.
coala is offline   Reply With Quote
Old 09-25-2002, 02:43 PM   #2
20 Ton Squirrel
Risu Oyabun!
 
20 Ton Squirrel's Avatar
 
Join Date: Apr 2001
Location: Houston, Texas
Posts: 1,460
Default

*yawns and stretches*

Alright, you poor soul... forced to deal with F4. May the light of MX shine upon thee soon. Until then, I shall aide!

Now... lemme think here... gotta remember how this is done. Slap your four MC instances on the stage. Put a stop action in the first frame of each, by the way. Name the MC instances like this:

mov_1
mov_2
mov_3
mov_4

In the first frame of your timeline have this code...
Code:
int_random = random(4);
tellTarget("mov_" + int_random) {
    play();
}

That should do the trick. It's been a while, though, so lemme know if it doesn't. Good luck, happy coding, and for the love of all that's holy get MX. You won't be sorry. *grin*
20 Ton Squirrel is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:34 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.