My account  |  Support  |  Shopping Cart
Jumpeye Components, V3 Flash Components, Flash Components Pro, Flash V3 Components

Usage and Code Samples for Special Loader Flash Component




Special Loader Usage and Code Samples

Parameters

1. align(enumeration="topLeft, center", default="center") places the loaded content in the left top corner of the component or the center of the component.
2. border-Boolean(default=true) if true, the loaded content will have a border; false will load the content without a border.
3. borderColor(default=#FFFFFF) case the border parameter is set true, you can set the border's color.
4. borderSize(default=5) case border parameter is set true, you can set the border's size; the maximum size is 10 and the minimum size=0.
5. buildInPreloader(enumeration=none, bar, circular) choose the built in preloader between a bar preloader, circular preloader or no preloader.
6. contentPath(default="") the content that will be loaded, the content can be a jpeg, swf, png, gif or the specified linkage ID of a MovieClip from your library
7. preloaderColor(default=#336699) case the buildInPreloader parameter is set to bar or circular, you can set the preloader's color.
8. resizeType(enumeration=noscale, resize, scale, scaleborder, crop) set's the content dimensions according to the type of resize you choose.

Methods

1. setSize(width, height) -you can use this method to change the component dimensions

Events

1. onLoadProgress-returns the number of bytes that had been loaded and the total number of bytes in the file being loaded
2. onLoadComplete-returns a boolean value which is true if the content has been loaded and false if an error has occur during the loading process

Code Samples

this.attachMovie("SpecialLoader","ldr",this.getNextHighestDepth(),)
ldr.align="center"
ldr.border=true
ldr.borderColor=0x336699
ldr.borderSize=10
ldr.preloaderColor=0x000000
ldr.resizeType="resize"
ldr.builtInPreloader="bar"
ldr.setSize(250,180)
ldr.contentPath="1.jpg"

var listner_progress:Object = new Object();
listner_progress.onLoadProgress = function(bytesLoaded, bytesTotal) {
trace("bytes loaded "+bytesLoaded);
trace("total bytes "+bytesTotal);
};
ldr.addListener(listner_progress);

var listner_complete:Object = new Object();
listner_complete.onLoadComplete = function(succes:Boolean) {
if(succes){
trace("loaded")
}
};
ldr.addListener(listner_complete);


 


Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign