if your loader is only in 1 keyframe, it shouldn't blink when you change frames.
so my only option is to insert new loader to each image frame (it's about 400 images)?
1 person found this helpful
you only need one loader for each image that needs to be displayed simultaneously with other loaded images. eg, if you only display one image at any one time, you can use one loader.
but, back to your original issue, when you initiate an image load, there's going to be nothing to display by the loader until loading is complete. to prevent that "no image display" at each load-start, you should make your loader's _alpha=0 or _visible property false or, even easier, don't use a loader component: create an empty movieclip and use loadMovie() to load your images.
i'm sorry but i didn't quite understand.
i have 400 different images which only displays once, i mean the images doesn't repeat themselves' so what is the best method to load them?
i will appreciate it if you would help me
create an empty movieclip and use loadMovie() to load your images:
// execute this line once only
var loadTarget_mc:MovieClip=this.createEmptyMovieClip("loadTarget_mc,this.getNextHighestDepth ());
// any time you want to load an image (eg, whateverimage.jpg) use:
i'm sorry again but i'm newbie, so what do you mena by execute?
i'm using ActionScript 2. is this code in AS2?
thank you again
each line of (non-commented) computer code does something. it does that when it executes (= runs = plays).
i tried that, and it still gives me the black screen between the frames
are you expecting loaded images to be instantly visible after loading starts?
i mean that the game is controlled by arrows, and every arrow leads to other frame.
if i insert the images directly to the timeline, i'm not getting this gap ofcourse, i just want to get rid of that gap so the movement between the frames will be smooth.
every image is 200kb
that's not possible if you're loading images. upload your swf to your server and test. you'll see even longer delays in the appearance of your images.
if you want your images to appear instantly they must be preloaded or don't load them, at all, and add them to your swf.
thanks for all your help
i appreciate it.
just one more question please:
how and what is the best basic wat to preload them?
1 person found this helpful
there's no one way that suits everyone way. but basically preloading means you start load something before it needs to be displayed.
how that would fit with your setup depends on your setup and needs and is not possible to determine without checking your file(s).
p.s. please mark helpful/correct responses, if there are any.
i created a preloader and i still have this black frames.
i used your code for loadmovie, and did the preloader on seperate scene
i'm sorry for driving you crazy, but it's really important to me
you wouldn't see black, unless you were doing something wrong.
exactly what you're doing wrong is difficult to say without checking your file. but i can tell you that to do this correctly, you need to download you image before you go to a frame where you want it displayed. then when you go to the frame where you want it displayed, change one of its properties (like the _visible) property so it's displayed when that frame is entered.
thank you for all your help,
and i'm happy to say i got it right!
what i did is putting all the images in a new fla file and exported them.
next, i used loadmovie in the original file and every frame did stop on the loadmovie and it works!all your help
thanku for all your help