all groups > flash (macromedia) > june 2006 >
You're in the

flash (macromedia)

group:

Sound keeps playing onto next website?



Sound keeps playing onto next website? alanwallace4
6/3/2006 10:25:22 PM
flash (macromedia): Hi,
I am making a site and have just added some sound to the main swf.
Funny thing is though, when i view the site so far and go to another website
the music continues playing until i click on something?
Any Ideas?
Im using this code -

if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_music',new
Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.music = new Sound(this._parent.BS_music);
} else {
this.createEmptyMovieClip('_music_',new Date().getTime()-(Math.floor((new
Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.music = new Sound(this.BS_music);
}
_global.Behaviors.Sound.music.attachSound("music");
if (true) {
_global.Behaviors.Sound.music.setVolume(40);
_global.Behaviors.Sound.music.start(0,1000);
}

Cheers
Alan

Re: Sound keeps playing onto next website? RockoFaith
6/3/2006 11:53:27 PM
I like your sites. I dunno if you want the pages to open in a new page
necessarily, but you could put in the code to have the pages open in the same
window so that it wouldn't still have your page running.

I'm assuming that you're talking about your homepage
Re: Sound keeps playing onto next website? alanwallace4
6/4/2006 9:26:47 AM
Hi,
Thanks for the reply.
I'm not actually talking about my homepage. Im talking about this site - <a
target=_blank class=ftalternatingbarlinklarge
href="http://www.buildingourdream.com">Here</a>
(Ive only made the first page and the home page which you can navigate
between) but it when i leave the site that the music carries on playing - even
though there is a new site on my screen!
Im viewing on msn explorer. It also happens in IE.
Any help would be apreciated
Cheers
Alan
Re: Sound keeps playing onto next website? Keep YerSpam
6/4/2006 12:29:28 PM
[quoted text, click to view]

Are you sure that the site isn't using a frame - even a really tiny one
pixel tall frame? That might explain it.

Cheers,
- JJ
Re: Sound keeps playing onto next website? alanwallace4
6/4/2006 4:50:40 PM
Wow this is driving me completley crazy!
AddThis Social Bookmark Button