Solved

Flash Preloader

Posted on 2006-11-10
3
352 Views
Last Modified: 2012-05-05
ok, here's the problem,

first a quick summary what I've done so far.

first scene is my preloader scene with a picture (800x320) in the background, then I've 160 40x40 white boxes on top of them so you don't see the picture in the first place.

now the preloader should remove more boxes the more the movie is loaded, i.e. if 20% of the movie is loader then 20% of the boxes are gone(transparent).

Now my problem is that flash loads the movie entirely before the preloader even kicks in.
I guess it's the problem because I've already a picture on the first frame, so my question is:

Is there a way to load an image before all the rest of the movie and THEN start with the preload sequence?
0
Comment
Question by:simtech2007
3 Comments
 
LVL 5

Accepted Solution

by:
blockage1 earned 250 total points
Comment Utility
Yes. A movie will load everything it needs for each frame before loading the next frame. So for example, if you put your image on frame 1 and everything else you need on frame 2; You can make your preloader hold the movie on frame 1 until everything else is loaded. Of course, if the 800x320 accounts for most of your file then you wont see much preloader.

Also if you have symbols in your library that are exported for actionscript, by default they will be exported on frame 1. You can turn this off in the linkage dialog, but you will need to make sure you add them to the stage (on frame 2) or they wont get exported.

One more tip: open your publish settings an tick generate size report to find out exaclty where the load in you movie is.
0
 
LVL 3

Assisted Solution

by:judsonmusic
judsonmusic earned 250 total points
Comment Utility
Create 1 frame with the instance of that animation
You have to create a loop that loads the entire movie  while playing that animation.
Once the Movie is loaded, it will continue on to the first frame "usually frame 2"

I usually like to make preloaders in a seperate .swf file.

This is alot smoother and will also allow you to use it with other files.

Judson
0
 
LVL 1

Author Comment

by:simtech2007
Comment Utility
The problem was that if you use the Linkage function to "export for Actionscript" those movies get loaded in an imaginary frame 0.

so I've unchecked the "export on first frame" option, then put all the needed instances somewhere hidden on the frame after the preloader.

Now he only loads the first image, after that the preloader runs good.

thanks anyway
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now