Packagecom.dougmccune.controls
Classpublic class AnimatedGif
InheritanceAnimatedGif Inheritance AnimatedGifLoader Inheritance SWFLoader Inheritance mx.core.UIComponent
Implementsmx.controls.listClasses.IDropInListItemRenderer, mx.controls.listClasses.IListItemRenderer, mx.core.IDataRenderer

The AnimatedGif control is an extension of the AnimatedGifLoader that is designed to be used in custom item renderers and item editors.

This control adds the methods needed to use the AnimatedGifLoader as an drop-in item renderer. You can think of this control just like the Image control in the Flex framework (except it loads animated gifs of course).

MXML Syntaxexpanded Hide MXML Syntax

The <mccune:AnimatedGif> tag inherits the tag attributes of its superclass, and adds the following tag attribute:

  <mccune:AnimatedGif
    Events
    dataChange="No default"
  />
  

See also

com.dougmccune.controls.AnimatedGifLoader
http://livedocs.adobe.com/flex/2/langref/mx/controls/Image.html


Public Properties
 PropertyDefined by
 InheritedautoLoad : Boolean
A flag that indictes whether content starts loading automatically or waits for a clal to the load() method.
SWFLoader
 InheritedautoPlay : Boolean
Indicates whether the animation should being playing once the GIF loads.
AnimatedGifLoader
 InheritedbytesLoaded : Number
The number of bytes of the SWF or image file already loaded.
SWFLoader
 InheritedbytesTotal : Number
The total size of the SWF or image file.
SWFLoader
 Inheritedcontent : DisplayObject
This property contains the object that represents the content that was loaded in the SWFLoader control.
SWFLoader
 InheritedcontentHeight : Number
AnimatedGifLoader
 InheritedcontentWidth : Number
AnimatedGifLoader
 InheritedcurrentFrame : int
The current frame of the animation.
AnimatedGifLoader
  data : Object
The data property lets you pass a value to the component when you use it in an item renderer or item editor.
AnimatedGif
 Inheriteddelay : Number
If set to -1 the component will use the delay timings contained in the gif file.
AnimatedGifLoader
 Inheritedframes : ArrayCollection
An ArrayCollection that holds Bitmap objects for each frame of the loaded animation.
AnimatedGifLoader
 InheritedisGif : Boolean
True if the image loaded is an actual gif image (animated or not).
AnimatedGifLoader
  listData : BaseListData
When a component is used as a drop-in item renderer or drop-in item editor, Flex initializes the listData property of the component with the appropriate data from the List control.
AnimatedGif
 InheritedloaderContext : LoaderContext
A LoaderContext object to use to control loading of the content.
SWFLoader
 InheritedmaintainAspectRatio : Boolean
A flag that indicates whether to maintain the aspect ratio of the loaded content.
SWFLoader
 InheritednumFrames : Number
THe number of frames in the gif animation.
AnimatedGifLoader
 InheritedpercentLoaded : Number
The percentage of the image or SWF file already loaded.
SWFLoader
 Inheritedplaying : Boolean
Boolean indicating if the animation is playing.
AnimatedGifLoader
 InheritedscaleContent : Boolean
A flag that indicates whether to scale the content to fit the size of the control or resize the control to the content's size.
SWFLoader
 InheritedshowBusyCursor : Boolean
A flag that indicates whether to show a busy cursor while the content loads.
SWFLoader
 Inheritedsmoothing : Boolean
Boolean flag indicating whether bitmap smoothing should be used.
AnimatedGifLoader
 Inheritedsource : Object
The URL, object, class or string name of a class to load as the content.
SWFLoader
 InheritedtrustContent : Boolean
If true, the content is loaded into your security domain.
SWFLoader
Public Methods
 MethodDefined by
  
Constructor.
AnimatedGif
 Inherited
cleanup():void
Triggers calls to dispose() on all bitmapData objects that have been created.
AnimatedGifLoader
 Inherited
load(url:Object = null):void
Loads an image or SWF file.
SWFLoader
Protected Methods
 MethodDefined by
 Inherited
initializeHandler(event:FlexEvent):void
AnimatedGifLoader
Events
 EventSummaryDefined by
 Inherited Dispatched when content loading is complete.SWFLoader
   Dispatched when the data property changes.AnimatedGif
 Inherited Dispatched when a network request is made over HTTP and Flash Player can detect the HTTP status code.SWFLoader
 Inherited Dispatched when the properties and methods of a loaded SWF file are accessible.SWFLoader
 Inherited Dispatched when an input/output error occurs.SWFLoader
 Inherited Dispatched when a network operation starts.SWFLoader
 Inherited Dispatched when content is loading.SWFLoader
 Inherited Dispatched when a security error occurs while content is loading.SWFLoader
 Inherited Dispatched when a loaded object is removed, or when a second load is performed by the same SWFLoader control and the original content is removed prior to the new load beginning.SWFLoader
Styles
 StyleDescriptionDefined by
 Inherited Type: Class   CSS Inheritance: no
The name of class to use as the SWFLoader border skin if the control cannot load the content.
SWFLoader
 Inherited Type: Class   CSS Inheritance: no
The name of the class to use as the SWFLoader skin if the control cannot load the content.
SWFLoader
 Inherited Type: String   CSS Inheritance: no
The horizontal alignment of the content when it does not have a one-to-one aspect ratio.
SWFLoader
 Inherited Type: String   CSS Inheritance: no
The vertical alignment of the content when it does not have a one-to-one aspect ratio.
SWFLoader
Effects
 EffectDescriptionDefined by
 Inherited Triggering event: complete
An effect that is started when the complete event is dispatched.
SWFLoader
Property detail
dataproperty
data:Object  [read-write]

The data property lets you pass a value to the component when you use it in an item renderer or item editor. You typically use data binding to bind a field of the data property to a property of this component.

When you use the control as a drop-in item renderer, Flex will use the listData.label property, if it exists, as the value of the source property of this control, or use the data property as the source property.

The default value is null.

This property can be used as the source for data binding.

Implementation
    public function get data():Object
    public function set data(value:Object):void

See also

mx.core.IDataRenderer
listDataproperty 
listData:BaseListData  [read-write]

When a component is used as a drop-in item renderer or drop-in item editor, Flex initializes the listData property of the component with the appropriate data from the List control. The component can then use the listData property to initialize the other properties of the drop-in item renderer

You do not set this property in MXML or ActionScript; Flex sets it when the component is used as a drop-in item renderer or drop-in item editor.

The default value is null.

This property can be used as the source for data binding.

Implementation
    public function get listData():BaseListData
    public function set listData(value:BaseListData):void

See also

mx.controls.listClasses.IDropInListItemRenderer
Constructor detail
AnimatedGif()constructor
public function AnimatedGif()

Constructor.

Event detail
dataChangeevent 
Event object type: mx.events.FlexEvent

Dispatched when the data property changes.

When you use a component as an item renderer, the data property contains the data to display. You can listen for this event and update the component when the data property changes.