Working with SWCs - getDefinitionByName issue

后端 未结 2 693
忘掉有多难
忘掉有多难 2021-01-12 07:06

I have a bunch of graphics assets in a fla, the MovieClips are linked to some classes. I export the fla as a swc , which I add to my library with the option \"Merged into Co

2条回答
  •  一整个雨季
    2021-01-12 07:12

    Using FlashDevelop this is pretty simple to fix.

    Right click your included swc from the Project list. Choose options then "include library (complete library)".

    ..you can now use getDefinitionByName to get a unreferenced class from your swc file.

提交回复
热议问题