haXe Forum > SWC - Components
-
Thomas Negele Feb 25 at 16:06
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 -
Oleg Sivokon Feb 25 at 16:42
You can use
-swf-lib another.swf
compiler option to do that. -
Thomas Negele Feb 25 at 16:46
THANKS!!!!!!!! I'll try :)
-
Thomas Negele Feb 25 at 16:50
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). -
Oleg Sivokon Feb 25 at 17:47
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.
-
Thomas Negele Feb 25 at 19:04
Yeah great, similar to using SWC in Flash or Flex.. exactly what i needed!
Thank you for the quick answers! Nice Evening!