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?
I figured it out. There was a preloader movieclip which was causing the problem I deleted it and it's working. Thanks!
Copy link to clipboard
Copied
Is that the ONLY error message you're getting? Nothing preceding it?
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>
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.
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
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!
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?
Copy link to clipboard
Copied
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!