0 Replies Latest reply on Sep 3, 2013 2:50 PM by bricolage8067

    Button with Hyperlink - CreateJS

    bricolage8067

      I'm experimenting with publishing out for CreateJS in Flash CC.

       

      I'm not so sure how to get a basic hyperlink to work.

       

       

       

      Am I supposed to use AS3 and have it convert?

       

      btn1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2);

       

      function fl_ClickToGoToWebPage_2(event:MouseEvent):void

      {

                navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");

      }

       

       

      Or use Adobe Edge Animate's method?

       

      btn1.bindElementAction(compId, symbolName, "${_btn1_1}", "click", function(sym, e) {

         // Navigate to a new URL in the current window

         // (replace "_self" with appropriate target attribute for a new window)

         window.open("http://www.adobe.com", "_self");

      });

       

       

      Both of those didn't work.

       

      If someone can give me a code example I would really appreciate it. The button instance is btn1 and I need it to open as "_self"

       

      Thank you in advance.