Embedding Files as Binary Data : ByteArray « Development « Flash / Flex / ActionScript






Embedding Files as Binary Data

 
package {
  import mx.core.ByteArrayAsset;

  [Embed(source="f.swf", mimeType="application/octet-stream")]
  public class FP9BinaryData extends ByteArrayAsset {
  }
}

        








Related examples in the same category

1.Creating a Byte Array
2.Write array to ByteArray
3.By default, private properties are not written when an object is serialized
4.Embedding XML at compile time
5.Common Uses of Byte Arrays