Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound is still playing even when in different page!!! 2

Status
Not open for further replies.

mrkobby

Programmer
Aug 22, 2002
27
US
I have made a movie which I have looped.But how can I stop or pause when it loads in a new page?I tried to use actionscript but I am not too familiar.Is it possible?Please help,Thanx
 
You might need to clarify your question a bit, there. Are you talking about stopping a MOVIECLIP from looping, or stopping a SOUND from looping? Not really the same thing. _____________________________________________________
Knowledge is attained only by seeking out that which is unknown
 
I am trying to stop the sound from looping when the movie loads a new page.If the movie has to stop looping for the sound to stop, thats ok but the sound has to stop.I used (stopsound) and it stopped the sound however when the movie starts playing the sound starts again.I hope the info is useful.Please help.Thanx,Kobby
 
If you never want that sound to play again, just stop your movie from looping with a stop(); action at the same time you're stopping the sound.
If you want your main movie to keep looping, then set your sound in another movie clip, only present in the first frame of your main movie, stop this movie clip from playing when opening the new page, and then loop back your main movie to frame 2 instead of frame 1. The sound should then not replay! Regards,

oldman3.gif
 
Ok I get what you are saying .But there are two things:1 how do I put the sound only in the first frame of the movie? Does that mean the whole sound will be a movie clip?and 2:how will I loop to frame 2?Please help and thanx for your support.
 
I'm only supposing (with the little info you've given...) how you've actually set this up. Maybe posting your .fla would help us understand the problem. For now, our proposals remain highly speculative! Regards,

oldman3.gif
 
Ok I want to send it to you.But how can I upload it and send the link?

Thanx
 
If it's smaller than 1MB and you can even zip it up, you can e-mail it to me at oldnewbie@hotmail.com
If it's larger than that, upload it to your host, and then e-mail me the link at the above address, or post that link here. Regards,

oldman3.gif
 
I'm quite new to flash and even pcs and the file is 1.4 mb.Also I dont have an email at work yet.But if i want to stop the whole movie when it loads in a new page, what command can I give to the actionscript?

This is what I have now:


onClipEvent (mouseDown) {
getURL(
}

I want the movie to play when youre on the page but when you leave, it stops. Youve been a great help.

Thanx
 
onClipEvent (mouseDown) {
stopAllSounds();
_root.stop();
getURL(}

You can try adding those 2 lines before your getURL, but it would be better to have a look at your .fla. Regards,

oldman3.gif
 
This works perfectly when i test the movie as html,But when i insert the swf in a web page, i still hear the sound when a new page has loaded up, just like before.I dont know why.Any ideas?
I will try and send it to you.

Thanx.
 
Some confusion still in the terms used...
What do you mean exactly by "...when a new page has loaded up" ?
Are you opening up a new browser window from your Flash movie? If so, do you want to keep the Flash movie's window opened? Do you want your new page to replace your Flash movie in the same window?

Can you email me a link to such an occurence, along with the .fla(s). Regards,

oldman3.gif
 
The flash is going to be in a table on my page 200 by 140 pixels and i want to able to click it and load up a new page on my site.but the problem is when i tried out your suggestion, it worked perfectly so i took the swf and put itin my page.but it i still hear the sound even though its loaded up a new page.when i did a publish preview as html, it worked perfect.when i did a publish preview in flash even though it loaded in a new page,when i closed the page the flash wasnt playing.

I dont know how to link the .fla to you.If you could show me ,i'll do so.I really want to get this done.
Thanx
 
You don't link the .fla to me...

You upload the .fla (as you would your .swf) to your server, and then post a link to it here or e-mail me that link if you don't want to make it public.
Something along the lines...


I can then download it from your site, and have a look at it.

But can't you post a link to your testing file that doesn't work, or at least e-mail it to me? Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top