Package | com.dougmccune.controls |
Class | public class AnimatedGif |
Inheritance | AnimatedGif ![]() ![]() ![]() |
Implements | mx.controls.listClasses.IDropInListItemRenderer, mx.controls.listClasses.IListItemRenderer, mx.core.IDataRenderer |
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 SyntaxThe <mccune:AnimatedGif>
tag inherits the tag attributes of its superclass,
and adds the following tag attribute:
<mccune:AnimatedGif Events dataChange="No default" />
See also
Property | Defined by | ||
---|---|---|---|
![]() | autoLoad : Boolean
A flag that indictes whether content starts loading automatically
or waits for a clal to the
load() method. | SWFLoader | |
![]() | autoPlay : Boolean
Indicates whether the animation should being playing once the GIF loads.
| AnimatedGifLoader | |
![]() | bytesLoaded : Number
The number of bytes of the SWF or image file already loaded.
| SWFLoader | |
![]() | bytesTotal : Number
The total size of the SWF or image file.
| SWFLoader | |
![]() | content : DisplayObject
This property contains the object that represents
the content that was loaded in the SWFLoader control.
| SWFLoader | |
![]() | contentHeight : Number | AnimatedGifLoader | |
![]() | contentWidth : Number | AnimatedGifLoader | |
![]() | currentFrame : 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 | ||
![]() | delay : Number
If set to -1 the component will use the delay timings contained in the gif file.
| AnimatedGifLoader | |
![]() | frames : ArrayCollection
An ArrayCollection that holds Bitmap objects for each frame of the loaded animation.
| AnimatedGifLoader | |
![]() | isGif : 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 | ||
![]() | loaderContext : LoaderContext
A LoaderContext object to use to control loading of the content.
| SWFLoader | |
![]() | maintainAspectRatio : Boolean
A flag that indicates whether to maintain the aspect ratio
of the loaded content.
| SWFLoader | |
![]() | numFrames : Number
THe number of frames in the gif animation.
| AnimatedGifLoader | |
![]() | percentLoaded : Number
The percentage of the image or SWF file already loaded.
| SWFLoader | |
![]() | playing : Boolean
Boolean indicating if the animation is playing.
| AnimatedGifLoader | |
![]() | scaleContent : 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 | |
![]() | showBusyCursor : Boolean
A flag that indicates whether to show a busy cursor while
the content loads.
| SWFLoader | |
![]() | smoothing : Boolean
Boolean flag indicating whether bitmap smoothing should be used.
| AnimatedGifLoader | |
![]() | source : Object
The URL, object, class or string name of a class to
load as the content.
| SWFLoader | |
![]() | trustContent : Boolean
If
true , the content is loaded
into your security domain. | SWFLoader |
Method | Defined by | ||
---|---|---|---|
Constructor.
| AnimatedGif | ||
![]() |
cleanup():void
Triggers calls to dispose() on all bitmapData objects that have been created.
| AnimatedGifLoader | |
![]() |
load(url:Object = null):void
Loads an image or SWF file.
| SWFLoader |
Event | Summary | Defined by | ||
---|---|---|---|---|
![]() | Dispatched when content loading is complete. | SWFLoader | ||
Dispatched when the data property changes. | AnimatedGif | |||
![]() | Dispatched when a network request is made over HTTP and Flash Player can detect the HTTP status code. | SWFLoader | ||
![]() | Dispatched when the properties and methods of a loaded SWF file are accessible. | SWFLoader | ||
![]() | Dispatched when an input/output error occurs. | SWFLoader | ||
![]() | Dispatched when a network operation starts. | SWFLoader | ||
![]() | Dispatched when content is loading. | SWFLoader | ||
![]() | Dispatched when a security error occurs while content is loading. | SWFLoader | ||
![]() | 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 |
data | property |
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
listData | property |
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
AnimatedGif | () | constructor |
public function AnimatedGif()
Constructor.
dataChange | event |
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.