Skip navigation
Windbrand1
Currently Being Moderated

Export everything into swf?

Apr 25, 2012 7:20 AM

Tags: #flash #export #sound #actionscript #music #embed #include #independent

I have linked music into my .fla with this actionscript:

 

public var chpt1Theme:Sound = new Sound(new URLRequest('Interlude1.mp3'));

        public var chpt1ThemeSC:SoundChannel;

 

How do I package the music into the swf so the swf is completely independent? When I export -> movie, the sound is not included?

Thanks.

 
Replies
  • kglad
    62,197 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 25, 2012 8:02 AM   in reply to Windbrand1

    you have to import it (file/import) which will increase your swf's file size.

     

    you would then use different code after assigning your sound a class and using the "new" constructor. 

     

    why do you want the sound to be part of the swf?  that's usually not wise.

     
    |
    Mark as:

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