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!

I've got my button, with sound, now what?? 1

Status
Not open for further replies.

graphicgirl

Technical User
Mar 16, 2001
65
US
Hi Guys!
Okay, you guys have coached me through this seamly simple project of a "Button" - I've got my button, with text changing for the rollover, and when clicked it plays the sound clip GREAT! NOW... I need to get the url - I thought that if I created another button (used the Alph Effect to hide it) and put a key frame in right after the sound stops,then I could add an action - get url, but it starts cutting off my sound again, because of the mouse event "on release" So, what would you suggest?
Thanks in advanced - you guys really help alot with out making me feel stupid!
 
Hi Graphic Girl..

I would do it like this:

On your button that you ahd originally that makes the sound play, put this:

on(press){
soundclip.play(); (where soundclip is what you called your movie clip with the sound in it)
website=" (where nukoi.com is your favorite site... lol)
}

Then open up your movie clip with the sound file in it and insert a keyframe at the end.. Leave 2 or 3 frames after the sound to be sure nothing is cut off..

On that keyframe type in..
getURL(_parent.website);


When the user clicks the button, the sound plays.. When the sound finishes it takes them to a website..

You could do it without setting the variable but this way, if you want to have another button take you to a different site, all you have to do is change that buttons value for website.

Let me know how you make out..
-Nukoi
I know my stuff.. Hire me.
 
Thanks Nukoi!
I'll print this and follow it, step by step!

I'll let you know! :)
 
Hi Nukoi,
Well, I tried what you suggested - but it still only plays the sound for as long as you keep the button pressed down - when you release - the sound stops - And it goes to the page assigned - I GIVE UP!

Thanks anyway -
 
Hi Nukoi,
The download is EXACTLY what I want it to do! I'm not on my computer that has flash insalled - but I will take a look at it later this evening. What I ended up doing for now was to make the sound play "On Roll-Over" and then "get URL" On release - I took this project on for a friend, because I knew that if I had a project to work on, it would motivate me to learn Flash - I couldn't have even made it past the buttons if it hadn't been for your help! - Thanks, I will look at your file this evening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top