dynamic jpg load flash mx
- Started
- Last post
- 7 Responses
- effour
ok I can't find anything on this...i've looked and i've tried to no avail.
anyone know of some source files or tuts on the subject.
If I was any good at as I'd figure it out but since i'm not I need some help.
Thanks.
ps. i'm not looking for any javascript links.
- unfittoprint0
what's to know?
mc.loadmovie("image.jpg")
this.loadmovie("image.jpg")
- effour0
thanks...i forgot to put that i want to have a bunch of different images to load randomly on the page load.
- unformatted0
are you sure you looked?
how bout pressing SHIFT + F1. it might pop up a new window of surprises.
- unfittoprint0
imagine you have 10 images on the folder named 1.jp, 2.jpg, 3.jpg...
randNumber=Math.ceil(Math.random...
mc.loadmovie(randNumber+".jpg")
- effour0
it works!
thanks
whats the password btw
- knoxel0
hey unfittoprint, why use Math.ceil... why not just use random only...
randomNumber = random(10);
loadMovie(randomNumber+".jpg");
- unfittoprint0
'Flash Player 4. This function is deprecated in Flash 5; use of the Math.random method is recommended.'