Skip to main content
Known Participant
August 18, 2010
Question

Background Music Best Practice

  • August 18, 2010
  • 1 reply
  • 1070 views

Hello all,

New to the community and fairly new to Flash and Actionscript. I would like to know what's the best practice you add a background music to my page with play/stop buttons when using SWFobject?

I have seen a ton of tutorials on externally loading songs in, but in a recent project in class, when importing a SWF into a pre-written HTML code, the sound does not start even with the song in the same folder. I would like to know if there is a way to fix this or do anyone have an example of how to do this with embedded sound instead?

This topic has been closed for replies.

1 reply

Inspiring
August 18, 2010

You need to post code that doesn't work.

Known Participant
August 18, 2010

There is no code yet. This is the reason for the asking about best practice. Sure I could find an external sound script which I plan to do in a bit to test, but I know that this wasn't successful in the past so I'm trying to see if anyone has a better solution to save that time.Are you using SWFObject? If so, how do you add background music with play/stop buttons to your page? This is simply the question. Thanks.

Inspiring
August 18, 2010

I do use SWFObject but it has nothing to do with playing sound or implementing sound controls in Flash. You need to write AS3 code in your Flash application.

I think it is a bit early to discuss best practices at this point. Simple Sound implementation is quite straightforward with very little room for inefficiencies.

Here is documentation:

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/media/Sound.html