It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Playing background music in a webapp

Moderator: Phate

Playing background music in a webapp

Postby LisaMarieRamsey on Tue Oct 07, 2008 10:41 pm

Hi,
Have been all over the internet trying to figure out how to get and keep music playing continuously in the background of a web application while navigating from page to page. It is clear to use the <object> and <embed> tags in the html for a specific page but as soon as I navigate away from that page the music stops. I can of course invoke the same tags for every page but the music stops and restarts anew each time I navigate to a new page instead of continous play.

I'm starting to think this is not possible to do. Can anyone help?

thanks much,
Lisa
LisaMarieRamsey
 
Posts: 2
Joined: Tue Oct 07, 2008 10:22 pm

Postby flabbyrabbit on Wed Oct 08, 2008 9:22 am

There are two ways that spring to mind, both of which are not perfect but would work.

1. Use a frameset, with two frames one of them hidden. Have the music embedded in the hidden frame and load the rest of the content in the main frame. So when you change page only the main frame changes and the hidden frame continues to play.

2. Use javascript/ajax to load the page dynamicaly

Hope this helps,
Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby LisaMarieRamsey on Wed Oct 08, 2008 9:56 pm

Thanks so much for your quick reply. How clever of you...I like the hidden frame idea since I don't know AJAX :D

I appreciate your help.
Lisa
LisaMarieRamsey
 
Posts: 2
Joined: Tue Oct 07, 2008 10:22 pm

Postby flabbyrabbit on Thu Oct 09, 2008 10:41 am

Thats ok :D

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 0 guests