Comunidad de diseño web y desarrollo en internet online

hacer sonar sonido sobre un botón

Citar            
MensajeEscrito el 16 Jul 2010 10:45 am
Saludos
necesito hacer sonar un sonido, cuando paso sobre un botón.
Los objetos no son necesariamente "botones", sino movieclips, y necesito hacerlo con el on(rollOver)...

Tengo el sonido en la bibilioteca..
¿Cómo puedo hacerlo?

gracias

Por AguaRas

93 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 Jul 2010 02:21 pm
Algo así:

Código ActionScript :

boton.onRollOver = function(){
  var snd:Sound = new Sound();
  snd.attachSound("sonido")
  snd.start(0)
}


Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.