Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
In the first frame on the timeline add these variables and values
a = getBytesLoaded();
b = getBytesTotal();
v = Math.floor(a/1024)+"kb";
z = Math.floor(b/1024)+"kb";
w = Math.ceil((a/b)*360);
The variables a and b are exactly what they say. The variables v and z are the variables a and b converted from bytes to kilobytes and converting to an integer. The value w is the proportion of bytesloaded to bytesTotal converted to an angle in degrees. This is the value we will use to move the needle through its travel.
Back on the timeline add a new frame, frame 2 and add this code
gotoAndPlay (1);
This simply loops the loading animation so it can constantly be updated with renewed "bytesloaded" information.