• 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" errors when trying to test in a browser.

Community Beginner ,
Jul 12, 2017 Jul 12, 2017

Copy link to clipboard

Copied

When I try to test the movie (it's an flash file converted to HTML5) I get "AdobeAn is not defined" errors when trying to test in a browser. I've tried different movies with the same effect. Is there a simple fix for this? It complains about this line:

var comp=AdobeAn.getComposition("4EB76E079FBC4384212317D6674DBBC1");

Here's a larger snippet:

<snip>

})(createjs = createjs||{}, AdobeAn = AdobeAn||{});

var createjs, AdobeAn;

</script>

<script>

var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;

function init() {

canvas = document.getElementById("canvas");

anim_container = document.getElementById("animation_container");

dom_overlay_container = document.getElementById("dom_overlay_container");

var comp=AdobeAn.getComposition("4EB76E079FBC4384212317D6674DBBC1");

var lib=comp.getLibrary();

var loader = new createjs.LoadQueue(false);

......</snip>

Anyone have this problem?

TOPICS
Code , Error

Views

11.8K

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

correct answers 1 Correct answer

Community Beginner , Jul 13, 2017 Jul 13, 2017

I figured it out. There was a preloader movieclip which was causing the problem I deleted it and it's working. Thanks!

Votes

Translate

Translate
LEGEND ,
Jul 12, 2017 Jul 12, 2017

Copy link to clipboard

Copied

Is that the ONLY error message you're getting? Nothing preceding it?

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, 2017 Jul 12, 2017

Copy link to clipboard

Copied

Good question. Actually there is another error. I didn't realize it was occurring before, so that's very likely the problem. You'll see below the line (lib. seems to be missing a name after the dot. I'm not sure what would cause this.

<snip>

this.shape_122.graphics.f("#F7F290").s().p("ADKJLIg4AIIjlgrIjMg5QjNg4gDACQgEADgUiRIBajZIgHhbIAihxIAyhBIgaidQgBgDAVgjIAVgjIAhhYIBdgdIBcgtICeAMIB4gnICoB0IB6AZIA3A+IAJCcIgZCGIAgCKIjnJGg");

this.shape_122.setTransform(52,60.7);

this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.shape_122},{t:this.shape_121},{t:this.shape_120}]},1).wait(3));

}).prototype = p = new cjs.MovieClip();

p.nominalBounds = new cjs.Rectangle(3.5,5.3,104.7,111.5);

(lib. = function(options) {

this._element = new $.(options);

this._el = this._element.create();

var $this = this;

this.addEventListener('added', function() {

$this._lastAddedFrame = $this.parent.curre

</snip>

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, 2017 Jul 12, 2017

Copy link to clipboard

Copied

That's the library definition for a component. The component internal name should be after "lib.", e.g. "lib.an_Checkbox = function(options)".

So you've somehow corrupted one of your components.

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, 2017 Jul 13, 2017

Copy link to clipboard

Copied

This is happening to all of my flash files that I "Convert to other document formats" into HTML Canvas. I'm not making any changes to it. I'll have to try to figure out what it's having problems converting and then report it to support as a possible bug.

Aaron

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, 2017 Jul 13, 2017

Copy link to clipboard

Copied

I figured it out. There was a preloader movieclip which was causing the problem I deleted it and it's 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
New Here ,
Sep 05, 2017 Sep 05, 2017

Copy link to clipboard

Copied

Can you elaborate a little?  Can you not use preloadjs or was there something wrong with a specific use of a preloader?

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 ,
Sep 05, 2017 Sep 05, 2017

Copy link to clipboard

Copied

LATEST

Just so you know, the AdobeAn error will come up a lot if an earlier error prevented it from initializing correctly. If you see it again, ignore it and look for the earlier error that ClayUUID mentioned in message 2.

In a sense his answer was the correct one, though your one said exactly what the earlier error was caused by. I've marked his one as Helpful, as a compromise!

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