Packageat.display
Classpublic class SlideDisplay
InheritanceSlideDisplay Inheritance mx.core.UIComponent

The SlideDisplay class is a convenience class that contains a SmoothSWFLoader.

The advantage to the SlideDisplay as opposed to a SWFLoader for displaying slide content is the unloadAndStop() method will automatically call the destroy() method on any slide that extends the Slide class to clean up and prevent memory waste.

If debugMode is true then the a default image will automatically be loaded if a source supplied is invalid.

See also

at.display.Slide


Public Properties
 PropertyDefined by
  debugMode : Boolean = false
Outputs useful information for debugging this component for developers when true.
SlideDisplay
  maintainAspectRatio : Boolean
When set to true the content loaded will display proportionally in the space provided for the component.
SlideDisplay
  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.
SlideDisplay
  source : Object
The source of the file to be loaded.
SlideDisplay
Protected Properties
 PropertyDefined by
  loader : SmoothSWFLoader
The SWFLoader in the component.
SlideDisplay
Public Methods
 MethodDefined by
  
Constructor.
SlideDisplay
  
unload():void
Method for unloading the source from the component.
SlideDisplay
Protected Methods
 MethodDefined by
  
ioErrorHandler(e:IOErrorEvent):void
Error handler upon overlay load failure.
SlideDisplay
Property detail
debugModeproperty
public var debugMode:Boolean = false

Outputs useful information for debugging this component for developers when true.

The output is typically in the form of trace statements and Alerts.

The default value is false.

loaderproperty 
protected var loader:SmoothSWFLoader

The SWFLoader in the component.

maintainAspectRatioproperty 
maintainAspectRatio:Boolean  [read-write]

When set to true the content loaded will display proportionally in the space provided for the component.

The default value is true.

Implementation
    public function get maintainAspectRatio():Boolean
    public function set maintainAspectRatio(value:Boolean):void
scaleContentproperty 
scaleContent:Boolean  [read-write]

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. If true, the content scales to fit the SWFLoader control. If false, the SWFLoader scales to fit the content.

The default value is true.

Implementation
    public function get scaleContent():Boolean
    public function set scaleContent(value:Boolean):void
sourceproperty 
source:Object  [read-write]

The source of the file to be loaded.

This source can be of any type that a SWFLoader can accept.

The default value is null.

Implementation
    public function get source():Object
    public function set source(value:Object):void
Constructor detail
SlideDisplay()constructor
public function SlideDisplay()

Constructor.

Method detail
ioErrorHandler()method
protected function ioErrorHandler(e:IOErrorEvent):void

Error handler upon overlay load failure.

Parameters
e:IOErrorEvent — The event for the IOError
unload()method 
public function unload():void

Method for unloading the source from the component.