Packagecom.gestureworks.cml.element
Classpublic class Image
InheritanceImage Inheritance BitmapFactory Inheritance ElementFactory Inheritance flash.display.Sprite
Subclasses ImageElement

The Image class loads and displays an external bitmap file.
 
        
        var img:Image = new Image();
        img.src = "my_image.png";
        img.init();
        addChild(img);
        
     

See also

com.gestureworks.cml.factories.BitmapFactory


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
 InheritedaspectRatio : Number
[read-only] Stores the aspectRatio of the currently loaded image
BitmapFactory
 Inheritedavatar : Boolean
sets the avatar value
BitmapFactory
 Inheritedbitmap : Bitmap
Stores a reference to the currently loaded bitmap
BitmapFactory
 InheritedbitmapArray : Array
[read-only] stores images in an array
BitmapFactory
 InheritedbitmapData : BitmapData
Stores a reference to the currently loaded bitmapData
BitmapFactory
 InheritedbitmapDataArray : Array
[read-only] stores bitmap data array
BitmapFactory
 InheritedbitmapDataCache : Boolean
Specifies whether the bitmapData is cached or not
BitmapFactory
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedheight : Number
[override] Sets width of the display object in pixels
BitmapFactory
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 InheritedisLoaded : Boolean = false
BitmapFactory
 Inheritedlandscape : Boolean
[read-only] specifies whether the loaded image is landscape or not
BitmapFactory
 Inheritedleft : Number
sets left value
ElementFactory
 Inheritednormalize : Boolean
specifies whether loaded image is normalised or not
BitmapFactory
 InheritedpercentLoaded : Number
BitmapFactory
 Inheritedportrait : Boolean
[read-only] specifies whether the loaded image is portrait or not
BitmapFactory
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedresample : Boolean
Specifies whether a loaded image is resampled to the provided width and/or height.
BitmapFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedsizeArray : Array
stores array list size
BitmapFactory
 Inheritedsrc : String
Sets the file source path
BitmapFactory
 Inheritedstate : Array
property states array
ElementFactory
 Inheritedtop : Number
sets top value
ElementFactory
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
 Inheritedwidth : Number
[override] Sets width of the display object in pixels
BitmapFactory
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Protected Properties
 PropertyDefined By
 Inheritedimg : IMGLoader
BitmapFactory
Public Methods
 MethodDefined By
  
Constructor
Image
  
clone():*
[override] Returns a clone of this Image
Image
 Inherited
close():void
Closes the currently open image file
BitmapFactory
 Inherited
[override] This is called by the CML parser.
BitmapFactory
  
dispose():void
[override] Dispose method
Image
  
init():void
[override] Initialisation method
Image
 Inherited
load(file:String):void
Deprecated: Please Use open()
loads external image file
BitmapFactory
 Inherited
loadComplete(event:Event = null):void
This is called when the image is loaded.
BitmapFactory
 Inherited
open(file:String = null):void
Opens an external image file
BitmapFactory
 Inherited
parseCML(cml:XMLList):XMLList
parses cml file
ElementFactory
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
preloadFile(file:String):void
loads the file
BitmapFactory
 Inherited
resize():void
BitmapFactory
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Protected Methods
 MethodDefined By
 Inherited
BitmapFactory
 Inherited
BitmapFactory
Constructor Detail
Image()Constructor
public function Image()

Constructor

Method Detail
clone()method
override public function clone():*

Returns a clone of this Image

Returns
*
dispose()method 
override public function dispose():void

Dispose method

init()method 
override public function init():void

Initialisation method