Print Page | Close Window

Music File Problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5245
Printed Date: 28 March 2026 at 10:35pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Music File Problem
Posted By: zMaestro
Subject: Music File Problem
Date Posted: 24 August 2003 at 10:07am

I have a website that conatins a flash holding a sound file... this flash is at the header of every page, is there a way [WITHOUT using frames] to prevent the music file from re-playing when ever a page is changed... or there is not?

 

Thanks.




Replies:
Posted By: KCWebMonkey
Date Posted: 24 August 2003 at 6:31pm

use a cookie?

pull from the cookie and use an If statement that will insert the flash code if the cookie returns a null value...

<% If varCookie = "" Then %>
...flash object here...
<% End If %>

just a guess though...



Posted By: 3BEPb
Date Posted: 26 August 2003 at 4:16pm

KC, unfortunatelly, there is no way to do that, IMHO. If you'll find one - please let me know it :)

I'm usually doing as follows - playing with just one .html page with flash embeded (where music is playing). Then I'm embeding other flash movies into the top flash movie (with music). So the main flash file never reloads and music never interrupts. Only "sub" flash files changed.



Posted By: KCWebMonkey
Date Posted: 26 August 2003 at 8:36pm

Originally posted by 3BEPb 3BEPb wrote:

KC, unfortunatelly, there is no way to do that, IMHO. If you'll find one - please let me know it :)

Suggestion: make 2 identical flash files, one with the sound, and one with out sound and just the graphics.

then do something like this:

<% 
Dim strFlashSource
If isEmpty(Session("blnSessionIsGood")) = True Then
strFlashSource = "flash_File_Without_Sound.swf"
Else
strFlashSource = "flash_File_With_Sound.swf"
Session("blnSessionIsGood") = True
End If
%>

and you would use this for your source for the flash file:

src="<%=strFlashSource%>"

that way the user would only hear the flash file with the sound once per session.



Posted By: michael
Date Posted: 26 August 2003 at 8:43pm

I think KC's last suggestion would work out the best, aside that I would not use a session for it as it just consumes memory. I would work with something like
If Request.ServerVariable("Script_Name") = "default.asp" THEN
...play with sound
ELSE
...play without
END IF



-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: KCWebMonkey
Date Posted: 26 August 2003 at 10:51pm
Ok so i didn't get it perfect...


Posted By: zMaestro
Date Posted: 27 August 2003 at 3:11am

thanks alot for your replies....

but I want the music to continue while the users navigate my site... not to stop, not to replay...

a 5 min song for example I want to cont. playing either the user changed the page or not....

I don't want it to stop playing and replay when the page is changed... something like putting the flash sound file in the seesion of the browser and not the page itself...  (hehehe.. Can this be done ???)



Posted By: KCWebMonkey
Date Posted: 27 August 2003 at 5:46am

is this simply a sound file, or is there graphics too?



Posted By: Bluefrog
Date Posted: 02 September 2003 at 8:18am
Originally posted by zMaestro zMaestro wrote:

but I want the music to continue while the users navigate my site... not to stop, not to replay...

a 5 min song for example I want to cont. playing either the user changed the page or not....

I don't want it to stop playing and replay when the page is changed... something like putting the flash sound file in the seesion of the browser and not the page itself...  (hehehe.. Can this be done ???)

In ASP... use frames... in ASP.NET - it's possible to only load portions of a page... Those are your 2 possibilities - there are no more.

You can't put the Flash in a session or anything like that if you want continuous play... actually you can... but the server and client logistics are way too much. You'd have to use a custom ActiveX component or a Java applet (which is crap for sound).

The ONLY reliable thing for sound on the internet is Flash or custom programming.

I'd suggest using Flash in a frame or using it with ASP.NET and ensuring that your entire site is .NET, blah blah blah... daunting at best if you already have things done.

Otherwise, reassess how important the sound is...

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net