| Package | vegas.display |
| Class | public class SWFInfo |
| Inheritance | SWFInfo Object |
Example :
import vegas.display.SWFInfo ;
import flash.display.Loader ;
import flash.net.URLRequest ;
import flash.system.LoaderContext ;
var complete:Function = function( e:Event ):void
{
trace("-------") ;
var swf:ByteArray = e.currentTarget.bytes ;
trace( "SWF complete : " + swf ) ;
var info:SWFInfo = new SWFInfo( swf ) ;
trace( "SWF frameCount : " + info.frameCount ) ;
trace( "SWF frameRate : " + info.frameRate ) ;
trace( "SWF length : " + info.length ) ;
trace( "SWF version : " + info.version ) ;
trace( "SWF symbol class names : " + info.symbolClassNames ) ;
trace("-------") ;
}
var loader:Loader = new Loader() ;
loader.contentLoaderInfo.addEventListener( Event.COMPLETE , complete ) ;
addChild( loader ) ;
var request:URLRequest = new URLRequest( "library.swf" ) ;
loader.load( request ) ;
| Property | Defined By | ||
|---|---|---|---|
| bytes : ByteArray
The ByteArray representation of the SWF. | SWFInfo | ||
| compressed : Boolean [read-only]
Indicates the compressed byte value the specified SWF. | SWFInfo | ||
| fileLength : int [read-only]
Indicates the length of entire file in bytes. | SWFInfo | ||
| frameCount : int [read-only]
Indicates the total number of frames in the file. | SWFInfo | ||
| frameRate : int [read-only]
Indicates the frame delay in number of frames per second. | SWFInfo | ||
| symbolClassNames : Array [read-only]
Returns the Array representation of all symbol class defines in the library of the SWF. | SWFInfo | ||
| version : int [read-only]
Indicates the version value of the specified SWF. | SWFInfo | ||
| Method | Defined By | ||
|---|---|---|---|
SWFInfo(bytes:ByteArray = null)
Creates a new SWFInfo instance. | SWFInfo | ||
loadBytes(b:ByteArray):void
Loads the passed-in SWF bytes and launch the mapping of the object. | SWFInfo | ||
reset():void
Resets the informations and the bytes reference of this instance. | SWFInfo | ||
| Constant | Defined By | ||
|---|---|---|---|
| COMPRESSED : int = 0x43 [static]
The compressed tag value (0x43)
| SWFInfo | ||
| FULL : int = 0x3F [static]
The "full" tag value (0x3F)
| SWFInfo | ||
| NOT_COMPRESSED : int = 0x46 [static]
The "not compressed" tag value (0x46)
| SWFInfo | ||
| SYMBOL_CLASS : int = 0x4C [static]
The "symbol class" tag value (0x4C)
| SWFInfo | ||
| bytes | property |
bytes:ByteArrayThe ByteArray representation of the SWF.
public function get bytes():ByteArray public function set bytes(value:ByteArray):void| compressed | property |
compressed:Boolean [read-only] Indicates the compressed byte value the specified SWF.
public function get compressed():Boolean| fileLength | property |
fileLength:int [read-only] Indicates the length of entire file in bytes.
public function get fileLength():int| frameCount | property |
frameCount:int [read-only] Indicates the total number of frames in the file.
public function get frameCount():int| frameRate | property |
frameRate:int [read-only] Indicates the frame delay in number of frames per second.
public function get frameRate():int| symbolClassNames | property |
symbolClassNames:Array [read-only] Returns the Array representation of all symbol class defines in the library of the SWF.
public function get symbolClassNames():Array| version | property |
version:int [read-only] Indicates the version value of the specified SWF.
public function get version():int| SWFInfo | () | Constructor |
public function SWFInfo(bytes:ByteArray = null)Creates a new SWFInfo instance.
Parametersbytes:ByteArray (default = null) |
| loadBytes | () | method |
public function loadBytes(b:ByteArray):voidLoads the passed-in SWF bytes and launch the mapping of the object.
Parameters
b:ByteArray |
| reset | () | method |
public function reset():voidResets the informations and the bytes reference of this instance.
| COMPRESSED | Constant |
public static const COMPRESSED:int = 0x43The compressed tag value (0x43)
| FULL | Constant |
public static const FULL:int = 0x3FThe "full" tag value (0x3F)
| NOT_COMPRESSED | Constant |
public static const NOT_COMPRESSED:int = 0x46The "not compressed" tag value (0x46)
| SYMBOL_CLASS | Constant |
public static const SYMBOL_CLASS:int = 0x4CThe "symbol class" tag value (0x4C)