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

Flash & Html

Status
Not open for further replies.

capos

Technical User
Jan 31, 2005
8
CA
hi,

My intro page contains a flash animation as well as a "Skip Intro" html Link beneath it. I have an audio loop in the flash file that plays troughout the animation and continues looping even after all movie clips have been played in the swf file. If the user clicks the Skip intro link the main website opens up in a floating window keeping the intro page still running in the background (which is what I want), I'd like to know if it's possible to mute the music as soon as the user clicks the "Skip Intro" Link, by this I mean there would have to be a way with HTML code to communicate to the Swf file to stop all sounds from playing. I know javascript may be able to do this but I'm very unfamiliar with it, I would greatly appreciate any advice on this but please bare with my low-level java knowledge.

Thank You
-Capo
 
I know javascript may be able to do this

It probably will - but you should ask in the JavaScript forum (forum216).

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
if the music is playing in the flash file, simply add some actionscript to the "skip intro" button that stops the sound.

Attach something like this to the "skip" button

Code:
on (release) {
  mySound.stop();
  getURL("[URL unfurl="true"]http://www.mySite.com/mypage.html","blank");[/URL]
}

You shouldn't need to touch Javascript, but you will be better off in the Flash forum. My Flash skills are way past rusty!

Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top