每次都忘记,这里记一下
[Embed(source = "../Media/new.xml",mimeType = "application/octet-stream")]
private var XmlClass:Class;
public function Foo()
{
var xmlObj:Object = new XmlClass();//很多教程写到这里就没有了,其实还没完
var xml:XML = new XML(xmlObj);
}