问题
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