Image

Inherits from:none (Image is a root class)
  • Version: 1.1
  • Author: Brendan Dawes
  • Classpath: com.dragslidefade.Image
  • File last modified: Saturday, 11 February 2006, 14:19:04
Loads an image into a MovieClip complete with a left to right progress bar and then fades the image up when it's loaded
Example:
var i:Image = new Image(instanceName,1);
i.loadImage("image.jpg",true,true,false);

Summary

Constructor
Instance methods

Constructor

Image

function Image (
$target:MovieClip, $depth:Number)
Parameters:
target:
the MovieClip you want to target
depth :
the depth of the MovieClip

Instance properties

onImageComplete

onImageComplete:Function
Callback function triggered when the image has faded up

onImageLoaded

onImageLoaded:Function
Callback function triggered when the image has loaded

onProgressUpdate

onProgressUpdate:Function
Callback function triggered each time the progress updates

Instance methods

loadImage

function loadImage (
i:String, p:Boolean, m:Boolean, s:Boolean, width:Number, height:Number)
Loads an image (or swf) into the targeted MovieClip
Parameters:
i :
the image you want to load in
p :
show a progress bar, true or false
m :
use a mask, true or false
s :
scale the image to fit. true or false
width :
the width of the image
height:
the height of the image