Class org.as2lib.io.file.SwfFile

Implemented Interfaces

MediaFile

Description

SwfFile holds all information of a loaded SWF-file.

Note that this file can also be used to represent images.

Method Index

new SwfFile()
getContainer(), getLocation(), getSize(), toString()

Constructor Detail

SwfFile

public function SwfFile(container:MovieClip, uri:String, size:Byte)

Constructs a new SwfFile.

Parameters

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.)

Method Detail

getContainer

public function getContainer(Void):MovieClip

Returns the container to the resource.

Return

MovieClip that contains the .swf

Specified By

getContainer() in org.as2lib.io.file.MediaFile

getLocation

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).

Return

location of the resource related to the content

getSize

public function getSize(Void):Byte

Returns the size of the file in bytes.

Return

size of the file in bytes

toString

public function toString():String

Extended Stringifier Example: [type org.as2lib.io.file.SwfResource | Location: MyFile.txt; Size: 12KB; ]

Return

the SwfResource as string

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass