I’m loading jpegs in to my page externally using the following function:
loadMovie(“image”+random(24)+".jpg", “_root.container”);
That works great, the thing is however, I want the people that will be editing the site to be able to just type the number into a text file and then have that number be used by the random function. I’m having problems getting this to work and I’m not sure if random() lets you use a variable.
Here’s what I’ve tried with no success:
In the random image layer which resides on the main timeline–
loadMovie(“image”+random(_global.pictotal)+".jpg", “_root.container”);
In the actions layer which also resides on the main timeline here is my variable declaration–
_global.pictotal = this.pictotal;
In my text file, here’s the line that gives it the value 24-
&pictotal=24&
Is this just not possible with random() and if that is true, is there another way to randomly load jpegs using a variable to define how many there are in the directory so no blanks show up.