SWC Instance name on movieclips?

佐手、 提交于 2020-01-16 01:03:59

问题


Is it possible to compile movieclips to swc with the instance name as property name? This happends when I add a dynamic text field, but i would like this also on some UI elements.


回答1:


Tick the "Export for ActionScript" box in the symbol properties and give it a class name. That will make it show up in the swc.

So if you have a Car clip containing a Driver clip you will need to check "Export for actionscript" on both these clips.
If you then give the Driver clip an instance name it will show up as a property on your Car.



来源:https://stackoverflow.com/questions/2286226/swc-instance-name-on-movieclips

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!