Skip navigation
Currently Being Moderated

Loading an SWC dynamically at runtime in Flash Application

Jun 22, 2012 5:18 AM

Hi all,

 

  I have a SWC file (library file) created using Actionscript and i want to include that swc to make new Flash widgets. The procedure now we are following is i am manually copying the SWC file in libs folder in Flash Builder 4.

 

I want to actually load it dynamically at runtime into my swf file so i dont need to compile it all over again if the original library file is altered.

 

One method that we tried was FZip. Where we are unzipping the swc and then reading the library.swf using the loadSWF method. The problem here is i will have to put this code in all the widgets that we will make. So is there any way where we can load the swc at runtime and no need of including the FZip code in all the widgets.

 

 

Let me know if you all need more explaination on this.

 

Thank you

 

 

Mike.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points