• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

AdobeAn is not defined error when trying to test HTML5 document

Community Beginner ,
Jul 12, 2020 Jul 12, 2020

Copy link to clipboard

Copied

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

adobeAN-error.jpg

Views

317

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 12, 2020 Jul 12, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 12, 2020 Jul 12, 2020

Copy link to clipboard

Copied

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();
}

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 12, 2020 Jul 12, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2020 Jul 13, 2020

Copy link to clipboard

Copied

Wow, I'm an idiot. I was using HTML5 document, converted to AS 3.0 and working. Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2020 Jul 13, 2020

Copy link to clipboard

Copied

LATEST

So this isn't a project intended for use on a public web page?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines