This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2006 > Need Help please





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Need Help please
NurAllesya

2006-02-20, 3:26 am

i'm new with flash.. and i have create a site using flash... my question is how can i insert loading bar that we usually see before entering flashsite..
droopy.ro

2006-02-20, 3:26 am

i hope that you have some vague experience in flash(at least).
you first draw a rectangle on the first frame of a movie. you select it and
make it a movieclip(watch it, on the grid which appears when you conver it into
a movie clip, select the upper left corner). ok, in the properties, on left,
name the instance "preload".
now you have to write down the instance's width. then you resize it to 1
pixel(the width). then in the actions of the same frame(you can add another
layer, but this should still be in the first frame) add the next code:

BE CAREFUL: replace "the_width" with the width you wrote down!!!

totalSize = _root.getBytesTotal();
loadedSize = _root.getBytesLoaded();
bara._width = the_width * loadedSize / totalSize;
if (totalSize == loadedSize) {
gotoAndPlay(5);
}
else {
gotoAndPlay(1);
}


when everything will be loaded, the movie will start plaing from the 5th
frame(, you can change that).

Chris (mudbubble)

2006-02-20, 3:26 am

you can always search this forum (see google group link in my sig) or google in general or
flashkit.com or kirupa.com for "preloader" - there are literally hundreds if not thousands freely
available across the web - source files for download that suit your needs.

******************************************
--> Team Macromedia
--> www.mudbubble.com
--> www.keyframer.com
--> http://www.macromedia.com/devnet/fl...tion_guide.html
--> http://groups.google.com/advanced_g...=UTF-8&oe=UTF-8




NurAllesya wrote:
> i'm new with flash.. and i have create a site using flash... my question is how can i insert loading bar that we usually see before entering flashsite..

NurAllesya

2006-02-20, 3:26 am

muahhh....thank you a lot....it help me..
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews