Packagecom.gestureworks.cml.element
Classpublic class ImageList
InheritanceImageList Inheritance ElementFactory Inheritance flash.display.Sprite
Subclasses ImageSequence

The ImageList element create a set of images through and orderered list.

See also

Container
Slideshow


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
  autoShow : Boolean
Indicates whether the file shows upon load
ImageList
 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
  currentIndex : int
sets the current index of the image
ImageList
  currentValue : *
[read-only] sets the current value
ImageList
 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
ElementFactory
 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
 Inheritedleft : Number
sets left value
ElementFactory
  length : int
[read-only] defines the length
ImageList
  preload : Boolean = true
defines preload flag
ImageList
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 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
  src : String
sets the src xml file
ImageList
 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
ElementFactory
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Constructor
ImageList
  
append(file:String):void
appends the image to the list
ImageList
 Inherited
clone():*
Returns clone of self
ElementFactory
 Inherited
CML callback
ElementFactory
  
dispose():void
[override] Dispose methods.
ImageList
  
getIndex(index:int):*
returns the image by index
ImageList
  
hasIndex(index:int):Boolean
finds and returns the index value
ImageList
  
hasNext():Boolean
find and returns the next image from the list
ImageList
  
hasPrev():Boolean
returns the previous index from list
ImageList
  
hide(index:int):void
hides
ImageList
 Inherited
init():void
Initialization function
ElementFactory
  
insert(index:int, file:String):void
inserts image into specified index location
ImageList
  
image load callback
ImageList
  
next():*
returns the next image
ImageList
 Inherited
parseCML(cml:XMLList):XMLList
parses cml file
ElementFactory
  
postparseCML(cml:XMLList):void
[override] This is called by the CML parser.
ImageList
  
prepend(file:String):void
prepends the image to the list
ImageList
  
prev():*
returns the previous image
ImageList
  
removeIndex(index:int):void
removes the index from list
ImageList
  
reset():void
sets the current index from list
ImageList
  
search(value:*):*
search the list by image value
ImageList
  
selectIndex(index:int):*
returns the image by index and updates the current index
ImageList
  
show(index:int):void
adds the selected index
ImageList
  
toggle(index1:int, index2:int):void
toggles the indexes
ImageList
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
autoShowproperty
autoShow:Boolean

Indicates whether the file shows upon load

The default value is false.


Implementation
    public function get autoShow():Boolean
    public function set autoShow(value:Boolean):void
currentIndexproperty 
currentIndex:int

sets the current index of the image


Implementation
    public function get currentIndex():int
    public function set currentIndex(value:int):void
currentValueproperty 
currentValue:*  [read-only]

sets the current value


Implementation
    public function get currentValue():*
lengthproperty 
length:int  [read-only]

defines the length


Implementation
    public function get length():int
preloadproperty 
public var preload:Boolean = true

defines preload flag

srcproperty 
src:String

sets the src xml file


Implementation
    public function get src():String
    public function set src(value:String):void
Constructor Detail
ImageList()Constructor
public function ImageList()

Constructor

Method Detail
append()method
public function append(file:String):void

appends the image to the list

Parameters

file:String

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

Dispose methods.

getIndex()method 
public function getIndex(index:int):*

returns the image by index

Parameters

index:int

Returns
*
hasIndex()method 
public function hasIndex(index:int):Boolean

finds and returns the index value

Parameters

index:int

Returns
Boolean
hasNext()method 
public function hasNext():Boolean

find and returns the next image from the list

Returns
Boolean
hasPrev()method 
public function hasPrev():Boolean

returns the previous index from list

Returns
Boolean
hide()method 
public function hide(index:int):void

hides

Parameters

index:int

insert()method 
public function insert(index:int, file:String):void

inserts image into specified index location

Parameters

index:int
 
file:String

loadComplete()method 
public function loadComplete():void

image load callback

next()method 
public function next():*

returns the next image

Returns
*
postparseCML()method 
override public function postparseCML(cml:XMLList):void

This is called by the CML parser. Do not override this method.

Parameters

cml:XMLList

prepend()method 
public function prepend(file:String):void

prepends the image to the list

Parameters

file:String

prev()method 
public function prev():*

returns the previous image

Returns
*
removeIndex()method 
public function removeIndex(index:int):void

removes the index from list

Parameters

index:int

reset()method 
public function reset():void

sets the current index from list

search()method 
public function search(value:*):*

search the list by image value

Parameters

value:*

Returns
*
selectIndex()method 
public function selectIndex(index:int):*

returns the image by index and updates the current index

Parameters

index:int

Returns
*
show()method 
public function show(index:int):void

adds the selected index

Parameters

index:int

toggle()method 
public function toggle(index1:int, index2:int):void

toggles the indexes

Parameters

index1:int
 
index2:int