|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help......bad.....I currently have a main.swf, and I want to load random external image's or swf's that contain images. I just can't get the external image/swf to load in a specific location on my main.swf. I currently have this as my code...
_root.createEmptyMovieClip("empty",1); _root.empty.createEmptyMovieClip("holder",2); pict = new Array("snow","im1","im2","im3","im4","im5","im6","im7"); pictPlus = pict.length; randomPict = Math.floor(Math.random()*pictPlus); _root.empty.holder.loadMovie("img/"+pict[randomPict]+".jpg"); I've tried setting x and y, but that moves whats inside my main.swf, and not the external files. HELP!!! Can anyone help me.....pweeze!! |
|
#2
|
|||
|
|||
|
You have tried adjusting the _root.empty.holder_x and _root.empty.holder._y ??
|
|
#3
|
|||
|
|||
|
also try this instead of _root.empty.holder.loadMovie()....
Code:
loadMovie("img/"+pict[randomPict]+".jpg", "empty.holder");
|
|
#4
|
|||
|
|||
|
Tried implementing the code, but it seemed to do nothing......the same problem still re-occurs....I also tried creating an external swf, and then loading the swf that contains the Random Image Loader, but that has no effect.....even then....that way is just ridiculous....
Any other ideas........ PS> The HABS are gonna make the playoffs!!!!!! |
|
#5
|
|||
|
|||
|
Can you post the .fla and give me a thourough description of what exactly you want to happen??
|
|
#6
|
|||
|
|||
|
Now how do you pre-load it???
I have the code working perfectly, but I want to pre-load the image.
I'm not sure how to randomly choose an image (each with different file sizes) and then pre-load it. The pre-loader I am using at the moment, loads the file, but not the random image. Any help would be appreciated. Ta. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Random Image Loader Issues!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|