AS3 FullSWF Preloader v2.0 FlashVar + XML

Update March 24th:

Changed files to CS3 Only. No more Flash 8 FLA included
Bug Fix: Alignment and position of the preloader. Update March 23rd:

Bug Fix: Now able to load large files.
Bug Fix: A blue box wont show before loading process begins now.

Bug Fix Dec 4th 2008
MouseEvents that were being blocked when the target swf loaded has been fixed.

AS3 FullSWF Preloader v2.0 FlashVar + XML

Author: Clemente Gomez FlashDen Portfolio: http://activeden.net/user/cg219/portfolio

Description: Simple and easy to set up. The file never even needs to be opened to customize the preloader. All settings are set in the flashvars of the html calling your swf. The preloader adjusts its size when the browser is resized.

____________________________________________________________________

Here is a list of the settings

color = Color of the Sliding area. Usage: Accepts a hex number starting with “0x”. Ex: 0xFFFF00

fadeOut = Speed of which the preloader fades out. Usage: Accepts a Number. Ex: .06

loadedSwf = swf you want to load. Usage: Accepts a swf filename with the extension. Ex. mainmovie.swf

percentColor = color of the percentage text. Usage: Accepts a hex number starting with “0x”. Ex: 0×0000FF

percentSize = font size of the percent. Usage: Accepts a Number. Ex: 24

direction = direction the preloader animates. Usage: Accepts “v” for Vertical and “h” for Horizntal. Default if nothing there is horizontal. Ex: h

Example of the flashVar string color=0×222222&fadeOut=0.2&loadedSwf=tester.swf&percentColor=0xEF0038&percentSize=36&direction=v




For the XML Version, All settings are set in a XML file called “pconfig.xml”. It needs to be located in the same directory as the preloader swf file.

___________________________________________________________

Here is a list of the settings

<color> = Color of the Sliding area.
Usage: Accepts a hex number starting with "0x".
Ex: 0xFFFF00

<fadeOut> = Speed of which the preloader fades out.
Usage: Accepts a Number.
Ex: .06

<loadedSw>f = swf you want to load.
Usage: Accepts a swf filename with the extension.
Ex. mainmovie.swf

<percentColor> = color of the percentage text.
Usage: Accepts a hex number starting with "0x".
Ex: 0x0000FF

<percentSize> = font size of the percent.
Usage: Accepts a Number.
Ex: 24

<direction> = direction the preloader animates.
Usage: Accepts "v" for Vertical and "h" for Horizntal. Default if nothing there is horizontal.
Ex: h
Example of the XML File
<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <loadedSwf>tester.swf</loadedSwf>
    <percentSize>36</percentSize>
    <percentColor>0xEF0038</percentColor>
    <color>0x444444</color>
    <fadeOut>.05</fadeOut>
    <direction>v</direction>
</settings>

* NOTE

Only thing that needs to be changed within the file is the Font, if you decide to change it. Its Arial by default.

Do Not modify these classes…. XMLLoader LoaderHelper ParamEvent

____________________________________

Galleries , Banner Rotators, Video Players

Audio Players

Preloaders

XML News Utilities

by
by
by
by
by
by