Skip to main content
November 3, 2011
Answered

black screen on Loader between movement in frames

  • November 3, 2011
  • 1 reply
  • 1943 views

Hi there.

I have a problem.

I've created a game which Made up from images.

Now I want to load the externally.

I used Loader component, but between movement from frame to frame (it's a game I create) the screen blinks.

How do I solve this with no use of preloaders?

Thanks

This topic has been closed for replies.
Correct answer kglad

hi again,
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.

1 reply

kglad
Community Expert
Community Expert
November 3, 2011

if your loader is only in 1 keyframe, it shouldn't blink when you change frames.

November 3, 2011

so my only option is to insert new loader to each image frame (it's about 400 images)?

kglad
Community Expert
Community Expert
November 3, 2011

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.