Flash 8 preloader download




















Call it empty mc , select "Movie clip" as Type and click OK. Now, just click on the "Scene 1" link above the timeline. You just created an empty movie clip!

Drag an instance of this movie clip onto the scene. If you followed everything correctly up to this point, your empty movie clip should be situated in the placeholder layer. The empty movie clip is represented on the stage just by its registration point.

Move this movie clip to a suitable position remember, your external SWF file which contains your site will be loaded in it - the top left corner of the stage is ok. Now, in the same folder where you saved this document, put your SWF file containing your flash site.

If you haven't got one right now, download the sample SWF file I made so you can quickly continue with the following steps. Enter the following code:. You will see your preloader showing how much more there is to wait before the site shows up. This is done with the loadMovie command. With this same command, you can load JPEG images in your flash movie, which is very handy, especially if you have a picture gallery.

Always specify the full path to the SWF you want to load, otherwise it might not work. This is because of security measures implemented in the Flash player. To make its width the smallest possible, because at this point, the outer movie has just begun loading. This is a percentage value. To explain this, imagine that your movie clip is for example pixels wide. This whole piece of code is an onEnterFrame event assigned to your loadingBar movie clip.

This is a movie clip type of event - buttons don't have it. The onEnterFrame event tells a movie clip to do something repeatedly, so many times per second as the framerate of your movie is set to e.

In this case, the movie clip executes the function. A function is a set of methods commands, things to do and variables pieces of data put together to be executed when the function is called upon. Since you want flash to know how much of the site has been loaded, you must write the right path to the movie clip which is loading the external file. That's why there is this.

Tell that movie clip to see how much of the external file you told it o load in the first line has been loaded up to this point. The second line is the same, except it tells the siteLoader movie clip to look the total filesize of the external file that is being loaded. The information obtained and stored in both variables is divided by , because in that way, you get kilobytes from bytes a kiloByte, or KB, has bytes.

Next, that information is used to obtain a percentage from it, and store it in a variable called percentage. This a simple mathematical operation - divide the part with the whole, multiply it with and you get the percentage. In short, this says that the width of the progress bar should be equal to the percentage of the total size of the external file loaded up to this point.

Now, ain't that cool? Finally, when nearly all of the movie has been loaded, you tell Flash to delete the onEnterFrame event because it makes no sense to leave this operation running in a loop if it served its purpose.

You also take the load off the use computer's CPU by doing this, which is important. Always discard any unnecessary operations once you've achieved what you wanted. You can also tell Flash to hide the preloader movie clip if needed, or to turn it off completely, but you've learned enough important concepts in this tutorial, so I'll leave that for some other lesson. In the meantime, check out my other tutorials on Flash preloaders!

And then give it an instance name, like loadingBarFrame for example. And to make it disappear too once the SWF has been loaded, add this line of code to your ActionScript:. Download the zipped source FLA file for this tutorial. However, my site, the SWF that my loader calls to in the empty movie clip, is timeline based. I have thumbnails at the bottom calling certain frames, and they no longer work. Thank you for this practical tutorial!

My preloder works fine with one exception: The buttons on my site does not work if the site is loaded with the preloader. Any ideea? If you want to know the reason please contact me!

I have built this preloader folloowing all of the steps. Everything is perfect. I have tried some of the other oprions mentioned above but am unable to make it work. Quick help would be appreciated — this party is soon, so I have to get this invitation working. Quick question….

I followed your tutorial and everything works well until it loads my SWF. In order to make my loadingBar disappear I just putted the layer that contains the empty movieclip where my website should load and BANG! Now, is there a way to really make it go away? Hi, thanks for a great tutorial.

Loading bar works great and it disappears as well after coverting the objects to movie clips. Hi i tried that preloader and work for me in ActionScript 2 3 didnt work I have some problem… First is…. I ask WHY? Second problem is. My SWF what i loading..

I am having problem with preloader. I have scrolling thumbnails that scroll with your mouse. When you click on it a it opens up to a bigger image. Does anybody know how to fix this problem. My target swf is the other flash made swf file. I found only 1 option to connect preloader with target swf file:. Preloader works it self but it brakes size of the target swf and ruining Action script commands of the target swf.

The other very important thing is security of the flash components. All of these factors make these very nice things absolutely useless until my knowledge is enough developed to solve them.

To do this exactly from edge to edge, be sure to have the Snap to objects option turned on the small magnet icon at the bottom of the Tools panel. Call it moving percentage field and make sure that the registration point is on its left middle side.

Double-click on the newly made movie clip on stage to enter inside it. Call this layer arrow. Select the Text tool T , click and drag to create a small text field just above the triangle. Leave all the properties for the dynamic text field the same as they were for the first one you created. Just make a small adjustment: set the alignment for the text field to left.

Give this text field an Instance name: call it percentDisplay , and lock this layer. Click on the Scene 1 link above the layers to return to the main scene.

Use the arrow keys to adjust the position of the moving percentage field movie clip. You should place some content here now. The best thing to simulate content is an image. Select the picture you want to import and click Open. The picture will appear on your main scene.

Enter the following ActionScript code inside it:. The site will load instantly, of course, because it loads straight from your hard disk and not from some web server. To see the preloader in action, execute the next step. This will set the simulated speed of download to a standard slow 56K modem. Do you think it is too complicated? Well, this method is suit to professional users, as you need to know ActionScript first.

After you imported the video, click next, and you can see the setting interface, the preloader will appear in your video only when you choose Generate Flash with the option Progressive download from a web server or Embed the video in SWF and play in timeline in this interface. Go on "Next", when you see this interface, congratulations you can add swf preloder to your video now. Just press "Start" and after a few minutes you can see your flash video, of cause with preloder.

These two methods both can add preloader in the Flash video. Use Flash 8 you can make a preloader as your own option.



0コメント

  • 1000 / 1000