Class com.bumpslide.ui.ResizableImage

????
   +--org.asapframework.ui.EventMovieClip
      +--com.bumpslide.ui.ResizableImage

Implemented Interfaces

IResizable

Description

Loads and Handles Resizing of an Image Uses Flash 8 Bitmapdata Smoothing

Field Index

allowStretching, applySmoothing, EVENT_IMAGE_LOADED, EVENT_IMAGE_NOT_FOUND, EVENT_IMAGE_PROGRESS, height, holder_mc, image_mc, imageLoaded, mask_mc, width

Method Index

new ResizableImage()

create(), loadImage(), reset(), setSize()

Constructor Detail

ResizableImage

function ResizableImage()

Constructor

Field Detail

EVENT_IMAGE_LOADED

static EVENT_IMAGE_LOADED:String

EVENT_IMAGE_PROGRESS

static EVENT_IMAGE_PROGRESS:String

EVENT_IMAGE_NOT_FOUND

static EVENT_IMAGE_NOT_FOUND:String

holder_mc

holder_mc:MovieClip

image_mc

image_mc:MovieClip

mask_mc

mask_mc:MovieClip

applySmoothing

public applySmoothing:Boolean
Returns whether or not smoothing is applied

allowStretching

public allowStretching:Boolean
whether or not image can be stretched beyond it's original height

imageLoaded

public imageLoaded:Boolean [Read Only]
Whether or not image has been loaded

width

public width:Number [Read Only]
returns actual width after resizing has been applied

height

public height:Number [Read Only]
returns actual height after resizing has been applied

Method Detail

create

static public function create(instance_name:String, timeline_mc:MovieClip):ResizableImage

Static method to create an instance No need to create a dummy clip in our library this way.

Parameters

instance_name
timeline_mc

Return

setSize

function setSize(w:Number, h:Number)

Resize the image

Parameters

w
h

Specified By

setSize() in com.bumpslide.ui.IResizable

reset

function reset()

Resets the image loader

loadImage

function loadImage(url:String)

Loads an images from a URL

Parameters

url