Skip to main content
Participant
July 12, 2017
Answered

"AdobeAn is not defined" errors when trying to test in a browser.

  • July 12, 2017
  • 1 reply
  • 13138 views

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?

This topic has been closed for replies.
Correct answer Kutenai8

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


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

1 reply

Legend
July 12, 2017

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

Kutenai8Author
Participant
July 12, 2017

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>

Legend
July 13, 2017

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.