Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 152999

Could someone please tell me the javascript equivalent to the following AS3 code? It would greatly help me in HTML5 Canvas.

$
0
0

student1btn.addEventListener(MouseEvent.MOUSE_OVER, student1btn_function);

 

function student1btn_function(event: MouseEvent): void {

  trace("Moused over");

  gotoAndStop("2");

}

 

As you can see when the person rolls over this button it goes to the next frame. For some reason it is just not working in HTML 5 canvas. I know the javascript code is different and I have tried it a million ways and I do not even get any errors when I publish and I even uploaded it to a server to see if it worked from there. NO LUCK. I want this content to be viewable on all devices. PLEASE HELP.


Viewing all articles
Browse latest Browse all 152999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>