Access keys

ImageLoader

Kind of class: class
Inherits from: none
Version: 1.06
Author: Jeroen Wijering
Classpath: com.jeroenwijering.utils.ImageLoader
File last modified: Tuesday, 26 December 2006, 15:30:46
Class for loading, scaling and smoothing images to a given MovieClip
Example:
import com.jeroenwijering.utils.ImageLoader;
var myLoader = new ImageLoader(this);
myLoader.loadImage("somephoto.jpg");

Summary

Constructor
Instance methods
Event handlers

Constructor

ImageLoader

function ImageLoader (
tgt:MovieClip, ost:String, wid:Number, hei:Number)
Constructor for the ImageLoader
Parameters:
tgt:
MovieClip to load the image into
ost:
Overstretch parameter (true/false/fit/none)
wid:
Width of the image target, defaults to target movieclip width
hei:
Height if the image target, defaults to target movieclip height

Instance methods

checkSmoothing

function checkSmoothing (
img:String) : Void
Check whether smoothing can be enabled

loadImage

function loadImage (
img:String) : Void
Start loading an image
Parameters:
img:
URL of the image to load

Event handlers

onLoadFinished

function onLoadFinished (
)
event handler for finished loading