package { import flash.display.*; import flash.events.*; import flash.utils.ByteArray; public class actionscript_embed_EmbedXML extends Sprite { [Embed(source="ctionscript-embed-embeds-data.xml", mimeType="application/octet-stream")] private var BinaryData:Class; public function actionscript_embed_EmbedXML () { // Create a new instance of the embedded data var byteArray:ByteArray = new BinaryData(); // Convert the data instance to XML var data:XML = new XML(byteArray.readUTFBytes(byteArray.length)); // Display the source code for the embedded XML trace(data.toXMLString()); } } }