haXe Forum > SWC - Components

  • I was looking for a possibility to use an SWC-File with haxe, but i found no solution yet.. Anyone an idea... my search here brought me nothing yet.

    Or is there a way to include another swf-file so that i have only one file in the end, not like loading an swf with loader.. i 'll have to host the loaded swf also in this case..

    Thanks and a nice day!
    Thomas

  • You can use

    -swf-lib another.swf

    compiler option to do that.

  • THANKS!!!!!!!! I'll try :)

  • Ok my SWF includes the other now (tells me the filesize), but i think i have to change some parts in my code now that it uses it.. i think i don't have to use load now anymore?
    Can you tell me where i can find more informations how to work with this included swf? Would be great.
    If i delete the "original inlcuded" swf the compiled one does not work anymore (think because of load).

  • This option tells the compiler to include all the definitions (such as classes, interfaces enums etc) into new SWF. This means you don't have to load anything, these definitions will be accessible to you right from your code. If you are using FlashDevelop as the editor - click on the "plus" sign letf to your compiled SWF (in the Project Manager panel) it will display all the definitions found in it.

  • Yeah great, similar to using SWC in Flash or Flex.. exactly what i needed!
    Thank you for the quick answers! Nice Evening!

< Prev | Page 1 / 1 | Next >