Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2005, 05:26
amazoncobra
 
Fecha de Ingreso: diciembre-2004
Mensajes: 108
Antigüedad: 19 años, 4 meses
Puntos: 0
poner sonido en codigo

Hola a todos...
Soy bastante malo con esto del actionscript y me gustaria que me ayudarais,,,simplemente es que en este codigo que he de poner para que cuando haga un onrollover se ejecute un sonido que yo ponga,,pero solo al hacer el onrollover,y ya de paso tambien como tendria que poner para que me pasara a otro frame,,es decir,,haciendo un on(press),gotonadplay,,,como y donde deberia ponerlo....

gracias a todos,,,,


Código:
function forward() {
this.onEnterFrame = function() {
this.nextFrame();
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
}
};
}
function reverse() {
this.onEnterFrame = function() {
this.prevFrame();
if (this._currentframe == 1) {
delete this.onEnterFrame;
}
};
}
//
my_mc.stop();
my_ mc.onRollOver = forward;
my_mc.onRollOut = reverse;

Donde "my_mc" sería el nombre de instancia del clip de película