;

PDA

Click to See Complete Forum and Search --> : Actionscript Preloader


Gandalf2349
05-03-2006, 06:30 PM
Alright, I've done some searching on the forums, waded through the threads of people asking how to make preloaders, and this is what I've come up with on making your own custom actionscript preloader.

Koolmoves automatically moves all shapes to the beginning of the movie, where they are loaded on the first frame. You have the option to choose whether you want sounds and images to behave the same way, but you cannot control shapes. The only frames that go before this loading of everything are the preloader frames automatically generated by Koolmoves if you use them.

I want to know if there is a way I can either stop the early loading of shapes as happens in flash mx, or if there's a way that I can just get a frame in before they all load.

I've looked at necromanthus's tutorial on making a preloader to comply with Koolmoves, but it did not work on my movie. To test it I basically just copied-pasted his code only altering the movie width/height variables, to see if it would work. I was going to then manually put in the code for all my shapes I wanted to put in, but the behaviour suprised me. When I went to play my movie, it loaded most of the way up with a blank screen, then at about 80-90% done the loading bar appeared for a couple frames then my movie started.

From what I've read there is no way to stop loading shapes at beginning of movie in Koolmoves, but what I would like to know is if this is planned for future versions, or if anyone else has found a successful way of getting around this.

Thanks in advance
-Gandalf2349

Bob Hartzell
05-04-2006, 08:24 AM
File > Export Settings > Load resources as needed is what you want. Create a fun file for a preloader movie and use that. That will be at the front before anything from the main movie.

blanius
05-04-2006, 09:34 AM
Gandalf please check you Private messages. You will find one from me.

Gandalf2349
05-05-2006, 02:34 PM
I have version 5.3.2

The only options I see about loading under File > Export settings is:

Put Image and Sound Data just before they are needed.
or
Put Image and Sound Data at beginning of swf.

What I'm looking for is something to put shapes just before they are needed. My movie is composed of mostly all shapes, and this is what's slowing the loading time.

Bob Hartzell
05-05-2006, 04:37 PM
There is no ability at present to load shapes as needed. I suggest you use the standard text preloader and set 'preload this percent' to less than 100. Keep decreasing the percent until the animation gets jerky and has pauses.

I would have to create a simple example and study the contents of the swf, but I don't believe that all shape data are loaded at the beginning.

Gandalf2349
05-05-2006, 07:01 PM
=/

Alright, I guess I'll stick to those preloaders then.

The reason I had wanted to make my own preloader was because my flash has shapes to make rounded corners at the edges of the movie, and I could not keep those shapes in your built in preloader.

I guess that preloader is better than no preloader though.

FLASHPULSE
05-05-2006, 08:06 PM
There is a action-script on this very forum that allows you to make your very own custom preloader. And it works just fine. I'll search for it later and post.

FLASHPULSE
05-05-2006, 09:51 PM
I did not create this, I forget who actually did. The only thing I made was the drawing and added music to make the file bigger.

VIEW AND DOWNLOAD HERE (http://flashpulse.com/koolmoves/CustomLoader.html)