MediaFile
SwfFile
holds all information of a loaded SWF-file.
Note that this file can also be used to represent images.
public function SwfFile(container:MovieClip, uri:String, size:Byte)
Constructs a new SwfFile
.
container | MovieClip that contains the loaded .swf
|
uri | (optional) URI to use as location ( container._url will
be used as default).
|
size | (optional) size of the loaded .swf
( container.getBytesTotal() will be used as default.)
|
public function getContainer(Void):MovieClip
Returns the container to the resource.
MovieClip
that contains the .swf
public function getLocation(Void):String
Returns the location of the resource corresponding to the content.
Note: Might be the URI of the resource or null if its not requestable or the internal location corresponding to the instance path (if its without any connection to a real file).
location of the resource related to the content
public function getSize(Void):Byte
Returns the size of the file in bytes.
size of the file in bytes
public function toString():String
Extended Stringifier
Example:
[type org.as2lib.io.file.SwfResource | Location: MyFile.txt; Size: 12KB; ]
the SwfResource
as string
toString() in org.as2lib.core.BasicInterface