mp3playerproblem

Hello all

I love the forums…first post though

They’ve really helped me.

Here’s my Question:
I have an mp3 player on my site…but you have to press play first. I’d like to have the first track auto play. Also I’ve split each scene into diff. html pages (I don’t even know if that was a good idea, but had to decrease load time). When you click a link…obviously you would have to click play again. Please educate me. Is there anything I can do…and if so, is there any way for the song to continue to play even as the user switches between html pages??? Thanks in advance for your help.

www.holepunched.com

holePUNCH

No, I don’t think you can do that.

Anyway, check out the Creating a Full Flash Site tutorial. It will introduce you to loading SWF’s dynamically, so you don’t have to load the whole thing at once. :wink:

http://www.kirupa.com/developer/mx/full_site.htm

well…I guess I should have read that before I went through all the hassle of splitting. Thanks

So now…I know how to fix everything…save this:

I would like each mp3 to loop continuously until the forward/back button is pressed.

www.holepunched.com

Y’all been more than helpful.

Use the Sound object:
[AS]// define Sound object instance
var mySound = new Sound(this);
// attach sound from library
mySound.attachSound(“mySound”);
// start sound and loop it 999 times
mySound.start(0, 999);[/AS]
When a Button is pressed, use the Sound.stop method:
[AS]mySound.stop();[/AS]
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary654.html