1 Reply Latest reply on Sep 1, 2010 4:04 PM by kglad

    translation to AS3

    elilany

      hello

       

      I just start to work with AS3 and i don't know how to write this code inAS3

      I'll be glad to know how to write it and if i need something more to make it works

       

      start_cold.onRollOver=function(){
      snow_mc.play();
      }
      start_cold.onRollOut=function(){
      snow_mc.gotoAndStop(1);
      }

       

      big thanks

      eli

        • 1. Re: translation to AS3
          kglad Adobe Community Professional & MVP

          :

           

          start_cold.addEventListener(MouseEvent.ROLL_OVER,overF);

          start_cold.addEventListener(MouseEvent.ROLL_OUT,outF);

           

          function overF(e:MouseEvent):void{

          snow_mc.play();

          }

          function outF(e:MouseEvent):void{

          snow_mc.gotoAndStop(1);

          }