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

88

Likes

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
Adobe Community Professional ,
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.

Likes

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

 

Likes

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
Adobe Community Professional ,
Jul 12, 2020 Jul 12, 2020

Copy link to clipboard

Copied

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

Likes

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!

Likes

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
Adobe Community Professional ,
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?

Likes

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