During my involvement on the Edge Animate forum, I have encountered desperate users who could not open their files anymore for various reasons. There are several ways I have tried to help them. Sometimes it is just a matter of reading the action.js file to find where a closure is missing. Other times, it is difficult to find the reason why a file is suddenly not working.
Stop here and do not despair. For some of you, depending on the problem, there might be a way to recover your files--especially if you have a published version--but the fix works also on development files.
In this tutorial, I will show you how to fix your files and save the day.
Do not overwrite the .an file as this is the framework that will allow the files to be repaired.
< s cript >
var custHtmlRoot="";
var script = document.createElement('script');
script.type= "text/javascript";
script.src = custHtmlRoot+"edge_includes/edge.5.0.1.min.js";
var head = document.getElementsByTagName('head')[0], done=false;
script.onload = script.onreadystatechange = function(){
if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
done=true;
var opts ={
scaleToFit: "none",
centerStage: "none",
minW: "0",
maxW: "undefined",
width: "1000px",
height: "400px"
};
opts.htmlRoot =custHtmlRoot;
AdobeEdge.loadComposition('hello', 'EDGE-9716415', opts,
{"dom":{}}, {"dom":{}});
script.onload = script.onreadystatechange = null;
head.removeChild(script);
}
};
head.appendChild(script);
That's all you need to do. Open your new file in Animate and you should be back to normal
I have helped several users with this simple fix and believe me, they were happy!