Reference for SimlpeLoader CS

Method

Description

load()Load source.

 

SimpleLoader.load()

Availability Flash Player 9.

Edition Flash CS3.

Usage SimpleLoader.load(url)

Parameters

url: URL of external png, jpg or swf.

Returns None

Description Method; Load the image or movie.

Code Example :

//oad the image or movie.  
loader_mc.load("photo.jpg");

 

To use event, you need to import the library:

import flash.events.*;

Event

Object

Description

completeEvent.COMPLETE

Broadcast when the image/movie just loaded.

changeEvent.CHANGEBroadcast when the fade in just completed and the image apply.
initEvent.INITDispatched when the properties and methods of a loaded SWF file are accessible.
ioError
IOErrorEvent.IO_ERROR

Dispatched when an input or output error occurs that causes a load operation to fail.

progressProgressEvent.PROGRESS

Dispatched when data is received as the download operation progresses.


Code Example :

import com.digicrafts.controls.*;    
function itemH(event:ItemEvent):void {
switch(event.type) {
//Event when load completed
case Event.COMPLETE:
brea;
}
}
loader_mc.addEventListener(Event.COMPLETE,itemH);

Property

Type

Description

Default Value

Possible Value

sourceStringThe path to the jpg, png or swf.
""
url to the file
contentDisplayObjectThe content of the loaded item. readonlyreadonly
autoLoadBooleanAuto load the source when the loader start. truetrue/false
borderNumberThe value of border 1Positive Number
borderColorNumberSet the color of glow when mouse over.0x000000Color Value
shadowNumberThe value of shadow effect4Positive Number
resizeTypeStringThe type of auto resize of the content AUTOAUTO, AUTO_HEIGHT, AUTO_WIDTH, NONE
fadeTimeNumberThe transition time of the animation. ( in seconds)1 secPositive Number
fadeTransitionTypeStringThe transition type of the animation.easeOutSineAny String
resizeTimeNumberThe transition time of the animation. ( in seconds)1 secPositive Number
resizeTransitionTypeStringThe transition type of the animation.easeOutSineAny String
fcConnectStringThe instance name of Digicrafts component which support FcConnect ""Any instance name of component
loaderSkinStringThe class name use of the skin for the loading animation ""Any class name of movieclip symbol
 
Item Parameter Name Description
1 source The path of the jpg, png or swf file.
2 autoLoad Enable/disable auto load the source when the loader start.
3 resizeType The type of resize for the content.
     
 
Item Parameter Name Description
1 fadeTransitionType The transition type of the animation.
2 fadeTime The transition time of the animation. ( in seconds)
3 resizeTransitionType The transition type of the animation.
4 resizeTime The transition time of the animation. ( in seconds)
     
 
Item Parameter Name Description
1 border The thickness of border.
2 borderColor The color of the border.
3 shadow The value of the shadow effect
4 loaderSkin The class name for the skin of the loading animation
5 fcConnect The instance name of Digicrafts component which support FcConnect
     
 
Item Parameter Name Description
1
-
Load Preset Button
2
-
Save Preset Button