fl.rsl

# SWZInfo - AS3 Flash

Package | fl.rsl
Class | public class SWZInfo
Inheritance | SWZInfo RSLInfo EventDispatcher 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

fl.rsl.RSLInfo.addEntry

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | bytesLoaded : int [read-only] Indicates the number of bytes that have been loaded thus far for all files being loaded. | RSLInfo
|  | bytesTotal : int [read-only] Indicates the total number of bytes that have been loaded thus far for all files being loaded. | RSLInfo
|  | complete : 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
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | currentAttemptIndex : 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
|  | failed : 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
|  | loader : Loader [read-only] Returns the loader used to download the RSL. | RSLInfo
|  | policyFileURLs : Array [read-only] Returns an array of policy file URLs that have been added via addEntry(). | RSLInfo
|  | rslURLs : Array [read-only] Returns an array of RSL URLs added via addEntry(). | RSLInfo

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | SWZInfo(digest:String) Constructor. | SWZInfo
|  | addEntry(url:String, policyFileURL:String = null):void Adds a series of URLs (RSL files and policy files). | RSLInfo
|  | 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
|  | dispatchEvent(event:Event):Boolean Dispatches an event into the event flow. | EventDispatcher
|  | hasEventListener(type:String):Boolean Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | EventDispatcher
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | load():void Starts the RSL download. | RSLInfo
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void Removes a listener from the EventDispatcher object. | EventDispatcher
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object
|  | willTrigger(type:String):Boolean Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | EventDispatcher

Events
Click for more information on events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined By
--- | --- | --- | ---
|  | activate | [broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher
|  | deactivate | [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`

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00