Search code examples
actionscript-3instanceswc

SWC Instance name on movieclips?


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.


Solution

  • 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.