4 Replies Latest reply on Nov 21, 2017 11:20 AM by kglad

    Convert ActionScript in HTML5

    Sabrina_PW

      Hi everybody,

       

      Can anybody help me to convert this ActionScript in a HTML5 Script?

       

      Thanks a lot!

       

      btn_Logo.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
      btn_ball01.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToGoToAndStopAtFrame_2);
      btn_ball02.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToGoToAndStopAtFrame_3);
      btn_ball03.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToGoToAndStopAtFrame_4);
      btn_ball04.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToGoToAndStopAtFrame_5);
      btn_ball05.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToGoToAndStopAtFrame_6);
      scene.addEventListener(MouseEvent.MOUSE_OVER, fl_ClickToGoToAndStopAtFrame_1);

       

      function fl_ClickToGoToWebPage(event:MouseEvent):void
      {
      navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
      }

      function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
      {
      gotoAndStop(2);
      }

      function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
      {
      gotoAndStop(3);
      }

      function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void
      {
      gotoAndStop(4);
      }

      function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
      {
      gotoAndStop(5);
      }

      function fl_ClickToGoToAndStopAtFrame_6(event:MouseEvent):void
      {
      gotoAndStop(6);
      }

      function fl_ClickToGoToAndStopAtFrame_1(event:MouseEvent):void
      {
      gotoAndStop(1);
      }

      stop();