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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question on Sound and URLs

Status
Not open for further replies.

dipita

Programmer
Apr 7, 2005
22
US
Hi,
I'm just learning actionscripting so please bear with me. I have 2 questions - (1) Sound: I am adding sound to a intro flash for a website. I have 5 scenes in the movie. I've attached the sound to the first frame of the first scene. It works fine but the problem is that it doesn't stop when all the scenes are finished (could be what I'm doing at the end (I just say stop(); and getURL("xxx");) Is there a certain better way of putting background sound that is advisable?
(2) URL: what's the best way to forward to a URL at the end of your flash - I've put getURL("xxx"); - it tries to open the html page but it still seems to have the last scene of the flash. What am I doing wrong?

Thanks!
 
So that you can overlap music over several scenes, you should use a soundObject...


Or use an external sound only .swf loaded on another level of your main movie...


As for linking, and replacing your Flash movie in the same window...

getURL(" "_self");

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Thanks. I tried the getURL(" "_self") but it still opens a new window to bring up the html page and the flash is blank, music is till running. Any idea what I'm doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top