PDA

View Full Version : load external jpg in sequence!?


Fresh_ales
03-03-2006, 08:20 AM
how can i do this?
if i use code like this to load it

_root.myMC.loadMovie("mypicture1.jpg");
_root.myMC.loadMovie("mypicture2.jpg");
_root.myMC.loadMovie("mypicture3.jpg");

i want to load images in order of first 1, then2, then 3....
thnx..
Fresh_ales:p

bladewing
03-05-2006, 05:14 PM
OoOhh... I'd like to hear how to do this too... ;)

sophistikat
03-05-2006, 05:52 PM
you need to make placeholder mcs inside your main mc// create & load
_root.myMC.createEmptyMovieClip("pic1", 0);
_root.myMC.createEmptyMovieClip("pic2", 1);
_root.myMC.createEmptyMovieClip("pic3", 2);

_root.myMC.pic1.loadMovie("mypicture1.jpg");
_root.myMC.pic2.loadMovie("mypicture2.jpg");
_root.myMC.pic3.loadMovie("mypicture3.jpg");EDIT: or are you looking for how to preload multiple, external, files?

Fresh_ales
03-06-2006, 06:59 AM
you need to make placeholder mcs inside your main mc// create & load
_root.myMC.createEmptyMovieClip("pic1", 0);
_root.myMC.createEmptyMovieClip("pic2", 1);
_root.myMC.createEmptyMovieClip("pic3", 2);

_root.myMC.pic1.loadMovie("mypicture1.jpg");
_root.myMC.pic2.loadMovie("mypicture2.jpg");
_root.myMC.pic3.loadMovie("mypicture3.jpg");EDIT: or are you looking for how to preload multiple, external, files?
hmmm.... this is nice.....
if you know how to preload multiple external files...i'll be happy to see, how it's done...
Thnx!!
Fresh_ales:D

Fresh_ales
03-06-2006, 03:33 PM
and how this code works???
first load 1 image..and when it's loaded goes to load 2 image??
or load 1, then 2 and...so on...so that means if i have 1 image larger then 2 theoretycly the image 2 can display faster?? or?
Fresh_ales:eek:

sophistikat
03-06-2006, 03:33 PM
i wrote a some what tutorial on loading multiple external swf files; let me find it and i'll send you the link.

EDIT:
http://www.actionscript.org/forums/showthread.php3?t=94233
#9 has a sample file