Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Music File Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedMusic File Problem

 Post Reply Post Reply Page  12>
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Direct Link To This Post Topic: Music File Problem
    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.

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post 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...



Edited by KCWebMonkey
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Direct Link To This Post 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.

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post 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.



Edited by KCWebMonkey
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Direct Link To This Post 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

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 26 August 2003 at 10:51pm
Ok so i didn't get it perfect...
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Direct Link To This Post 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 ???)

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 27 August 2003 at 5:46am

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

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.