C# Class SwfDotNet.IO.Tags.ImportAssetsTag

ImportAssetsTag is used to import shapes and other objects from another SWF file.

Since the identifier for an object is only unique within a given Flash file, imported objects are referenced by a name assigned when the object is exported.

To provide a degree of security the Flash Player will only import files that originate from the same domain as the file that it is currently playing. For example if the Flash file being shown was loaded from www.mydomain.com/flash.swf then the file contains the exported objects must reside somewhere at www.mydomain.com. This prevents a malicious Flash file from loading files from an unknown third party.

This tag was introduced in Flash 5.

Inheritance: BaseTag
ファイルを表示 Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
ImportAssetsTag ( ) : System

Creates a new ImportAssetsTag instance.

ImportAssetsTag ( string url, Assert exportedCharacters ) : System

Creates a new ImportAssetsTag instance.

ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

Reads the data.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

Method Details

ImportAssetsTag() public method

Creates a new ImportAssetsTag instance.
public ImportAssetsTag ( ) : System
return System

ImportAssetsTag() public method

Creates a new ImportAssetsTag instance.
public ImportAssetsTag ( string url, Assert exportedCharacters ) : System
url string URL.
exportedCharacters SwfDotNet.IO.Tags.Types.Assert Exported characters.
return System

ReadData() public method

Reads the data.
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte Version.
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void