Skip to main content
Inspiring
May 22, 2018
Answered

Uncaught ReferenceError: AdobeAn is not defined / HTML5 Document & GSAP

  • May 22, 2018
  • 1 reply
  • 4227 views

Anyone ever run into this console log error - " Uncaught ReferenceError: AdobeAn is not defined " when testing an HTML5 file??

I'm trying to include the GSAP library to do some animations. I changed my HTML template for publishing to include the line -

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>

Then I've written some code, all I have so far is -

var nextBtn = this.nextBtn;

var myShadow = nextBtn.shadow = new createjs.Shadow("#092C3F", 0, 7, 15);

var hover_tl = new TimelineMax();

function Hover(){

tl.to(nextBtn, 1, {scaleX: 1, scaleY: 1, ease:Quad.easeOut}

}

And when I test it in the browser (Google Chrome), my movieclip doesn't show up and I see the above error in the console log.

Never ran into this before and not sure what would be causing it. It seemed to happen after I added the hover variable and function.

Any help is appreciated, thanks.

This topic has been closed for replies.
Correct answer KeelyM

Nevermind - I'm an idiot and was missing a parentheses in my code!

1 reply

KeelyMAuthorCorrect answer
Inspiring
May 22, 2018

Nevermind - I'm an idiot and was missing a parentheses in my code!