Skip to main content
mhay77
Participating Frequently
July 12, 2020
Question

AdobeAn is not defined error when trying to test HTML5 document

  • July 12, 2020
  • 1 reply
  • 686 views

When trying to test in my browser I'm getting a blank window and the following errors in my console:

    This topic has been closed for replies.

    1 reply

    Legend
    July 12, 2020

    You really should be focusing your attention on that FIRST error, not the second one.

    mhay77
    mhay77Author
    Participating Frequently
    July 13, 2020

    Right, thanks. I just realized that after posting. Sorry, I'm a newbie with Animate. At a high level I'm trying to create a test file using drag/drop. So I had this action script implemented and once I removed it, the file would test.  This is the very frist snippet of action script I was attempting to input. Any tips?

    starIcon.addEventListener(MouseEvent.MOUSE_DOWN, startMove); 
    function startMove(evt:MouseEvent):void {
    starIcon.startDrag();
    }
     
    starIcon.addEventListener(MouseEvent.MOUSE_UP, stopMove); 
    function stopMove(event:MouseEvent):void {
    starIcon.stopDrag();
    }

     

    Legend
    July 13, 2020

    You know ActionScript code only works in ActionScript documents... yes?