Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting

Categories Advanced Flash Preloader
Author: Joscha Feth

 
Page 2
«prev 1 2 3 4 5 next»


Preloaders are the bane of all flash newbies and provide the first real test of Flash-hood. There are also many different ways of approaching the design too. Some use javascript, some only use two frames, some load every object behind a false background and others use tweened shapes and lots of keyframes. Well just to confuse you more, here is another way of building an advanced preloader but it's probably the best way too. This preloader uses the actual byte values for each frame of your movie loaded in via a text file. Below is the timeline. The length is inconsequential but in this example it's 86 frames.




To create this preloader we have to first create the text file which is done by modifying the contents of the Size Report. To do this you need to first generate a size report. Select File> Publish Settings and check the generate size report option (see below). Now publish your flash movie (File> Publish). You will now have a size report in the same directory as your .SWF file. Open it up and have a look at it.

In your size report you will have a list of frames, one through to x (x being total number of frames). To create your text file of variables it's just a matter of modifying the contents until you have something like this (see below) and saving it as "byte.dat"(don't forget the two important variables at the end, these should be self explanatory)

&1=2165&2=305&3=15&4=440&5=15&6=532&7=479&8=504&9=532&10=521&11=495&12=416&13
=496&14=533&15=556&16=569&17=566&18=555&19=526&20=491&21=418&22=399&23=527&24
=536&25=568&26=30&27=524&28=479&29=504&30=532&31=521&32=9&33=415&34=496&35
=533&36=556&37=565&38=562&39=555&40=526&41=9&42=418&43=9&44=527&45=536&46
=9&47=523&48=479&49=504&50=533&51=9&52=9&53=415&54=496&55=533&56=560&57=565&58
=562&59=555&60=526&61=9&62=417&63=9&64=527&65=537&66=9&67=523&68=479&69=504&70
=533&71=9&72=9&73=415&74=496&75=533&76=560&77=565&124=562&79=555&80=526&81
=9&82=417&83=9&84=527&85=537&86=9&frame_total=86&bytedata_loaded=1&

Flashtool also has a neat freeware tool that can transform the text generated in your size report to the text format above. Check it our here!


«prev 1 2 3 4 5 next»

» Level Advanced

Added: : 2000-06-27
Rating: 7.29 Votes: 587
Hits: 46728
» Author
--
» Download
Download the files used in this tutorial.
Download (45 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments