AS3嵌入swf元件库,如何访问指定的资源
It’s been a long-time without a post. Part of the reason for that has been starting work at a new job (which involves a commute),and part has been that as part of my new job,I was actually encouraged to spend time playing World of Warcraft. To me,that’s like taking a crowbar to Pandora’s Box and having a peek inside. I learned quite a lot,but have also played just a few too many Warsong Gulches. Back to work,and I was doing a little prototyping this evening,when I came across a familiar problem: In
to embed a symbol from an art
looks like it should do the trick,but you can’t access any of the information within the asset. That’s a real pain,the reason for which is pretty convoluted. I remembered working around this problem in the past,and happily managed to unearth a long-forgotten treasure in my codebase,which I thought I’d share (having rapidly refactored it to use as3-signals,naturally).
When you embed a SWF in this way then instantiate it,Flash somehow conspires to create a
?
转自:
http://alecmce.com/as3/embed-asset-gotcha
参考:
https://github.com/login?return_to=%2Frobertpenner%2Fas3-signals
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |