开发者

How to embed xml into swc file

How can i embed and then read a xml file from an开发者_运维知识库d into a .swc file?


Try this: http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/

It is not a very clear post, but give it some patience..

I haven't tried it personally, but people got it worked (source: comments on the same page)


You can use the mx:XML or mx:Model tags to do that.


this could help your:
[Embed(source="path/to/your/xml/file",mimeType="application/octet-stream")]
public var _xml:Class;

var needXml:XML = XML(new _xml);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜