PDA

View Full Version : flashsound


tpeck
08-09-2006, 05:47 AM
Hi. I have using javascript to embed sound in a webpage using the flashsound.js method ONLINE WITH THE SWF FILE COMING FROM A CD and it's been working fine. Now something is causing it to change its behaviour and the page never gets to finish loading - hence no flashsound.

I don't know why this should suddenly happen. Any ideas?

Here is the code:

<html>
<head>
<script src="http://aapress.com.au/js/flashsound.js" language="JavaScript1.2"></script>
<script>
var mySoundObj1 = new FlashSound();
</script>
</head>

<body>
<a href="javascript://" onclick="mySoundObj1.TGotoAndPlay('/s1','start');return false;">
<img border="0" src="cat1.png"></a>
<script>
mySoundObj1.embedSWF("E:/MEDIA/AUDIO/listgame1.swf");
</script>
</body>
</html>

*****************************************

As I say, it used to work but not now. It still works offline in IE.

Can anyone help?

_Aerospace_Eng_
08-09-2006, 06:02 AM
Instead of
E:/MEDIA/AUDIO/listgame1.swf
try this
file:///E|/MEDIA/AUDIO/listgame1.swf

tpeck
08-09-2006, 09:15 AM
Using your substitution, it still works offline, but not online. Something seems to be loading and loading and loading... if it's the CD .swf file I can't work out why IE can do it off but not online. I have tried lowering security - trusted sites etc, but to no avail.

Beats me because it was never an issue before. Maybe IE7 is the reason? Except a friend of mine has tried it with IE6 and no go too.

Terry

_Aerospace_Eng_
08-09-2006, 02:58 PM
So you are saying it worked online before? It might be an issue without cross domain scripting. Local host is different than a host site. JS can't go across domain. Can you not load the JS file from the CD as well? Maybe you should tell us why you are using the cd in the first place? Is this for some type of local application? If so then I think you should keep everything local. What if the user has no internet connection?