0

I need to export classes that do not have connection with Symbols, sprites and images in the library (only action script codes). But every time I export the SWF, it exports only ActionScripts that have a connection to the library.

In Publish Settings my source path is linked with all ActionScripts

  • Create a dummy class linked to the Library and **import** there all the classes you want to be compiled. – Organis Jul 13 '19 at 11:25
  • As I understand it, I have to create a class and within the code of this class put the code import *? If so, how will I import more than 1000 files – Ronald Master Jul 13 '19 at 16:05
  • Import them by package import, I guess? Like > import flash.events.* – Organis Jul 13 '19 at 17:39
  • There's another way. You can create an SWC library out of these extra classes and include this file in Publish Settings > AS3 Settings > Library path. You will need **mxmlc** command line tool from AIR SDK or Flex SDK and have quite a read about all the options, but in the ultimate end that will pay off because Flash IDE won't have to compile all 1000 classes each time you publish your application. – Organis Jul 13 '19 at 18:01
  • I tried the same SWC as you said but when I exported nothing has changed. The mxmlc in Flash Builder 4.7 I can do the file – Ronald Master Jul 13 '19 at 21:43
  • I am trying the following command: mxmlc "pathtoas\1.as" -compiler.include-libraries "pathtooneSWC" "pathtosecondSWC" . Everything happens fine however the file is 864KB and does not have some images. If I compile only one or the other (besides the two) compiles right. A SWC has only images and classes of it. The other contains only codes. The correct size would be between 8MB ~ 9MB – Ronald Master Jul 14 '19 at 21:22

0 Answers0