Random .swf
- Started
- Last post
- 13 Responses
- Blueman
I know that there are some posts about this but it stil don't get it.
I want to randomize 7 .swf files. I created a ran.swf file that host the code to load the random .swf files but I can't get it to work.
Please help.. and thank.
- nospacebar0
Uhhm. K.
I'm going to need you to be a little more vague, please.
- Blueman0
I don't know where to put this? And it doesn't work for me.
name your movies movie1.swf through movie5.swf
ranNumber = random(5);
loadMovie("movie"+ra nNumber+".swf");
gabe
(apr 28 03, 23:41)
- Blueman0
*bump*
- j_red0
copy this and paste it into the first frame of a brand new movie.
num = Math.round(Math.random()*10+1)
_root.loadMovie("movie"+num);
- Blueman0
movie clip? or new swf file?
- ok_not_ok0
var num = random(7)+1;
this.loadMovie("num"+".swf");
- Blueman0
here is what i have;
ran.swf that I want to put the code in
movie1.swf - movie7.swf
all in the same folder.
I want the ran.swf file to randomly choose one of the 7 .swf files.
I don't know where to put the code. Nothing is working now.
- ok_not_ok0
place the code in the first frame of the ran.swf file.
//create variable that will hold random number
var num = random(7)+1;//load ur random swf
this.loadMovie("movie"+"num"+".s...
- Blueman0
ok_not_ok.. i did what you said and this is the error that i got:
Scene=Scene 1, Layer=Layer 5, Frame=1: Line 5: String literal was not properly terminated
this.loadMovie("movie"+"num"+".s...
- ok_not_ok0
try this..replace the loadMovie with this one.
this.loadMovie("movie"+num+".swf...
- lvl_130
check your mail blueman.
- fifty500
http://flashtothecore.praystatio…
19a & 19b
- Blueman0
thanks u guys.. i'll try to make it work. i know that it's easy.. well atleast it should be.. so i'll get it