Old 29th September 2009, 13:23   #1
Jopia
Junior Member
 
Join Date: Sep 2009
Location: India
Posts: 3
Send a message via Yahoo to Jopia
Play Sound on Click off a Button

Here is the requirement. I want to load a skin with faded image by default with a button ( start ). When i click on the start button it should load the correct image with background sound.

For Example.

Faded Car image with start button. when i click on the start button it should make a noice of engine start and load the proper car image.

I have two Layouts 1.FadedLayout
2.OriginalLayout


By Default FadedLayout will be loaded with Start Button.

When i click on Start button it should load the OriginalLayout and make a sound of Engine Start.

Completed the Switching Layout by switchToLayout("OriginalLayout");

I would like a make a sound when i click on the Start Button. Please Suggest me How to do it.

Last edited by Jopia; 29th September 2009 at 13:41.
Jopia is offline   Reply With Quote
Old 29th September 2009, 15:22   #2
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
it's not gonna happen dude, this was discussed, played/hacked to death some while ago.

Being able to play a sound on button click/hover etc... involves a hacky workaround that causes security issues.

Not only that but the other way would wipe the playlist of users songs just to play your sound file, you can imagine how many people would find it extremely annoying!

Best give that idea up before you even start!
SLoB is offline   Reply With Quote
Old 30th September 2009, 06:50   #3
Jopia
Junior Member
 
Join Date: Sep 2009
Location: India
Posts: 3
Send a message via Yahoo to Jopia
Thanks For your response ..

Can u suggest me is there any way we can use the Browser object that can call the flash file ? the flash file will have the provision to make a sound ?
Jopia is offline   Reply With Quote
Old 30th September 2009, 07:59   #4
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,062
Quote:
Originally posted by SLoB


Not only that but the other way would wipe the playlist of users songs just to play your sound file, you can imagine how many people would find it extremely annoying!
No kidding,I have the hatemail to prove it, I did it with a skin I coded years ago, played a sound on skin load, from the reaction of some people you'd think I'd killed their kitty and pooped in their cornflakes...
Mr Jones is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump