ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
fl.rsl 

SWZInfo  - AS3 Flash

Packagefl.rsl
Classpublic class SWZInfo
InheritanceSWZInfo Inheritance RSLInfo Inheritance EventDispatcher Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flash CS5
Runtime Versions: Flash Player 10.1, AIR 2

The SWZInfo class indicates how to download a SWZ file, which is a signed Runtime Shared Library (RSL). Specify the digest (an SHA-256 hashed string value) in the constructor, and add a series of URLs (both for the SWZ file itself and for a necessary policy file) with addEntry(). If any of the URLs in the list end with ".swf", they will be downloaded as normal, For a non-cached SWF RSL, the digest will NOT be checked.

Related API Elements



Public Properties
 PropertyDefined By
 InheritedbytesLoaded : int
[read-only] Indicates the number of bytes that have been loaded thus far for all files being loaded.
RSLInfo
 InheritedbytesTotal : int
[read-only] Indicates the total number of bytes that have been loaded thus far for all files being loaded.
RSLInfo
 Inheritedcomplete : Boolean
[read-only] Returns a value of true if the download has completed successfully and false if the download is not yet complete or has failed.
RSLInfo
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcurrentAttemptIndex : int
[read-only] Returns the index of the URL currently attempting to download.
RSLInfo
  digest : String
[read-only] Returns the read-only digest that was set in the constructor.
SWZInfo
 Inheritedfailed : Boolean
[read-only] Returns a value of true if the download has failed and false if the download is not yet complete or has completed successfully.
RSLInfo
 Inheritedloader : Loader
[read-only] Returns the loader used to download the RSL.
RSLInfo
 InheritedpolicyFileURLs : Array
[read-only] Returns an array of policy file URLs that have been added via addEntry().
RSLInfo
 InheritedrslURLs : Array
[read-only] Returns an array of RSL URLs added via addEntry().
RSLInfo
Public Methods
 MethodDefined By
  
SWZInfo(digest:String)
Constructor.
SWZInfo
 Inherited
addEntry(url:String, policyFileURL:String = null):void
Adds a series of URLs (RSL files and policy files).
RSLInfo
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Starts the RSL download.
RSLInfo
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
Property Detail

digest

property
digest:String  [read-only]

Language Version: ActionScript 3.0
Product Version: Flash CS5
Runtime Versions: Flash Player 10.1, AIR 2

Returns the read-only digest that was set in the constructor.



Implementation
    public function get digest():String
Constructor Detail

SWZInfo

()Constructor
public function SWZInfo(digest:String)

Language Version: ActionScript 3.0
Product Version: Flash CS5
Runtime Versions: Flash Player 10.1, AIR 2

Constructor. Pass in digest value.

Parameters
digest:String