[Embed(source="mfile.xml", mimeType="application/octet-stream")]
[Bindable]
private var my_file:Class;
function some_func():void {
var my_xml:XML = XML(new my_file);
}
my_xml now contains valid XML. You can now access stuff it like normal XML variables.
Got this from the comments in this post: http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/
Thanks, it's always a pain to remember how to do this.
ReplyDelete