AS3 - 让符号从资产库中无的Flex [英] AS3 - getting symbols from an assets library WITHOUT Flex

查看:126
本文介绍了AS3 - 让符号从资产库中无的Flex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一直在寻找了很长一段时间,我能找到这样做的唯一的例子是这样的:

Been searching around for a long time, and the only examples I can find for doing this are something like this:

[Embed(source="Assets.swf", symbol="dog")]
private static var _Dog:Class;

public static function get Dog():MovieClip {
      return new _Dog();
}

不过,这似乎是柔性只(我得到错误无法解析Assets.swf中转码) 如何在纯AS3做到这一点?

But this seems to be flex-only (I get the error "unable to resolve 'Assets.swf' for transcoding") How do you do this in plain AS3?

推荐答案

我在对答案前同样没有快乐过,在<一个href="http://stackoverflow.com/questions/1766750">http://stackoverflow.com/questions/1766750.

I'm having equally no joy on the answer front over at http://stackoverflow.com/questions/1766750.

更新: 我回答我自己的问题。也许该解决方案在该链接可以帮助你太...祝你好运!

update: I answered my own question. Maybe the solution at that link might help you too... Good luck!

这篇关于AS3 - 让符号从资产库中无的Flex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆