Reply
Old 09-07-2004, 02:01 PM Flash Button: Sound
Average Talker

Posts: 17
Trades: 0
Hi guys,

I would really appreciate some information here - I'm designing a Flash movie, where the user can press a button to play a sound - sounds simple, but I just can't find out how to do it. I have designed a button, and I just want to know, how can you make it so that when a user presses the button, a WAV file from your harddrive plays

Again, thanks

Jon
cgdude is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 09-08-2004, 03:23 PM
Average Talker

Posts: 17
Trades: 0
I could really use some help
cgdude is offline
Reply With Quote
View Public Profile
 
Old 09-08-2004, 04:28 PM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
well here's it coming

First of all. What program are u using?
Second u have to import a sound to the movie before playing it.
Third. When using an if{ construction or maybe some other it's sometimes impossible to play an audio file directly. In that case create a different Sprite(the thing with it's own timer) and tell it to play an audio on a certain frame.. then instead of telling the if function to play sound tell it gotoandplay the frame where you let the sound file play.

If you'r new to flash and dont have a clue what i'm saying..
Well then post what you don't understand. Flash aint very hard to learn I recommend using swishmax it will get you going rather fast.
I learned flash a week ago and in that week i build the game HL2 Total Mayhem.
Which you might know.
If you don't play here: http://www.top-download.net/games/ha...tal-Mayhem.php

Greetz
Thierry
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 09-09-2004, 03:21 PM
Average Talker

Posts: 17
Trades: 0
Hi,

Thanks for the help - Im using Flash - I don't have a clue how to even import a sound
cgdude is offline
Reply With Quote
View Public Profile
 
Old 09-09-2004, 05:10 PM
Alex91's Avatar
Skilled Talker

Posts: 51
Location: Canada
Trades: 0
i use Macromedia Flash to, i can give ya a tutorial... im pretty sure it will work lol.

Im using MX so if something is a lil deifferetn if you dont have flash MX than... sorry lol:

Open Flash.

Open the Movie File you Are Making.

Insert your button (File>Import Than find your button, You can also import to library if you dont want it to automaticly insert in your Document)

Than Import your Sound (File>Import to Library Than find your Sound.

Place your Button where ya like.

Press F11 To Ope your Library

Click on your Button Wherever you paced it on your Stage

Now go to Windows>Actions (Or just press F9)

Now heres da Hard part... I forget how to do it but i think if you go into the actions pannel whie your button is selected Click Movie control and Browser/networking Than i think use Geturl (double click) And upload your music to a host and put that url there. If that dosent work fool around With the other commands such as Loadclip etc.


Tell me if this helps
Alex91 is offline
Reply With Quote
View Public Profile Visit Alex91's homepage!
 
Old 09-11-2004, 07:16 AM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
if your new to picture editing programs or flash
you will have a hard time in the beginning.
Once you know psp or flash it will be easy to understand the other.

Notice that everything is based upon layers and differents depth.
Notice that each movie clip has it's own timeline.
Notice that when resizing text it sometimes is a pain.:P there's a width option to fix that problem.

Cheers
Thierry
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 09-12-2004, 06:55 AM
Skilled Talker

Posts: 57
Location: the Netherlands
Trades: 0
just file -> import the sound file (i would convert that to mp3 for loading speeds) and use a simple actionscript for the buttons (just click your way trough the actionpanel, ON -> MouseOver, Play "file" and so on.
design is offline
Reply With Quote
View Public Profile Visit design's homepage!
 
Reply     « Reply to Flash Button: Sound
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10301 seconds with 13 queries