Skip to main content
Known Participant
April 8, 2009
Question

Inserting a .swf into a .fla

  • April 8, 2009
  • 1 reply
  • 3823 views

Hey I am trying to insert an external music player "jukebox.swf" into a .fla

I don't really know how to load a .swf into the project.  How can I get this to work?

Thanks.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 8, 2009

you can use loadMovie() or loadMovieNum() or the moviecliploader class'es loadClip().

Known Participant
April 9, 2009

Yes, but, well I guess I should have mentioned I'm a newbie to Flash.... How do I literally script it out?  I mean the file name is jukebox.swf, so where do I put that file in order to be loaded and what is the script that needed to be loaded?

Thanks.

kglad
Community Expert
Community Expert
April 9, 2009

the easiest thing to do is put jukebox.swf in the same directory with your loading html and swf.  you can then use:

this.createEmptyMovieClip("mc",1);

mc.loadMovie("jukebox.swf");