-
if i just want a random movie to appear when you come to my site, how would i do that?
is that something i could do in flash. Load
a random movie ontop of the level 1 movie.
or does that have to be done in the html.
or would even be satisfied if it just went to a random frame or scene in the flash movie.
i am having a hard time finding a tutorial on random activities. mostly using MC's
thanks.
-
Array...
it is very possible using an array. My brain is dead after working all day but maybe someone else can take this idea further.
All you need to do is create the MC's that you want it to pick from and add there labels into an array. When they click on a button to load a new page just have a telltarget or gotoandplay that grabs a random label from the array. You can use Math.random and just give each of the MC's a label that is a number. Then just make sure you limit your random numbers to the scope of your array.
Sorry if this makes no sense my brain is fried. I am too tired to make a case study. Hopefully someone else has the time if this isn't clear enough.
Hope i helped some,
James
-
thanks, i don't know about "array"
but i will start reading into that to make it make sense.
thanks for the info, i understand the brain farting.
-
i have a feeling this may work try it out, if not i'll come up with plan B!
export all your swf files.
1.swf
2.swf
3.swf
on your main timeline:
Code:
ran=random(2);
movies=["1.swf","2.swf","3.swf"];
loadMovieNum(movies[ran],1);
-
that totally worked!
you rock!
thank you.
-
deep down i had a feeling it would
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|