Skip to main content
Known Participant
February 17, 2010
Answered

Importing symbols from another .fla file

  • February 17, 2010
  • 1 reply
  • 3824 views

Hello,

I searched everywhere until I got bored. Is there any way I can import symbols from another .fla file ? For my game I have a file named background.fla that has several backgrounds and I want to import from it and change it when needed. Is there any way I can do that ?

Also after what I read if i want to import a .swf file in my main .fla it will loose all it's code, but I want to import a character and use it with gotoAndPlay() and gotoAndStop().

And I have one last question if I may, I have the basic knowledge of OOP and from what I know it's imposible: I want to create a class, create an instance of it in my main .fla and somehow make that class control the code from my main file. I found a way with timers, but it's pretty expensive on memory...

Thank you for your time (^^,)

This topic has been closed for replies.
Correct answer kglad

Again, thank you for your answer, but that is not what I was loocking for, I'm trying to load the library dinamic using as, not to have all my librarys (I have a lot) in my main file.

Thanks ^^


yes, you can do it dynamically, too.  check the applicationdomain class.

1 reply

kglad
Community Expert
February 17, 2010

sure.

open both fla files at the same time, at the top of your library panel click the "new library panel" button.  (there are tooltips to help you find it.)   using the combobox in the new panel open the other library panel.  now, with both library panels open, drag and drop to heart's content.

Known Participant
February 17, 2010

Thanks for the answer kglad... but I forgot to say that I want to do this using AS. I have a huge game with a lot of graphics and animations and adding all the content in the main file would make it over 300 mb.

Also if you have a better idea of storing and adding my content to the game I would like to listen.

Cheers