Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't Adobe Edge animation work after copying generated code into an html file in a different directory?

I'm trying to keep all the files Edge generates separate from my main files.

This is the html in the file it publishes:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>Untitled</title>
<!--Adobe Edge Runtime-->
<script type="text/javascript" charset="utf-8" src="anim_edgePreload.js"></script>
<style>
    .edgeLoad-EDGE-20819118 { visibility:hidden; }
</style>
<!--Adobe Edge Runtime End-->

</head>
<body style="margin:0;padding:0;">
<div id="Stage" class="EDGE-20819118">
</div>
</body>
</html>

I copied the code over to an html file outside the animation folder containing all the generated files and changed the directory of the JS file it's referring to.

anim_edgePreload.js --> edgeAnimation/anim_edgePreload.js

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>Untitled</title>
<!--Adobe Edge Runtime-->
<script type="text/javascript" charset="utf-8" src="edgeAnimation/anim_edgePreload.js"></script>
<style>
    .edgeLoad-EDGE-20819118 { visibility:hidden; }
</style>
<!--Adobe Edge Runtime End-->

</head>
<body style="margin:0;padding:0;">
<div id="Stage" class="EDGE-20819118">
</div>
</body>
</html>

The animation no longer appears on the page, any idea why?

I get this error in Firebug after a few seconds:

TypeError: AdobeEdge.okToLaunchComposition is not a function

function edgeCallback(a){htFallbacks[a]&&(a=htFallbacks[a]);AdobeEdge.preload.got[a]=!0;if(a==AdobeEdge.preload.last)AdobeEdge.okToLaunchComposition(compId),AdobeEdge.preload.busy=!1,AdobeEdge.preload.q.length>0&&(a=AdobeEdge.preload.q.pop(),AdobeEdge.requestResources(a.files,a.callback))}

like image 912
Orb Hitter Avatar asked Nov 28 '12 23:11

Orb Hitter


People also ask

What happened to Adobe Edge Animate?

Adobe has stopped developing Edge Animate. See Edge family of products | End of development.

Can you open html files in Adobe animate?

1 Correct answer. 1) Animate HTML content generally won't run from the local file system due to overzealous browser security restrictions. 2) You can't just throw the HTML file on your web server. You also have to upload the resource folders that Animate generates, in the same relative locations to the HTML file.

What replaced Adobe Edge Animate?

Adobe Edge Animate will be retired and most of its capabilities will be integrated into the product currently known as Flash. But along with this change, Adobe Flash will be renamed Adobe Animate as they refocus on the core animation capabilities along with more recently added HTML5 export functions from Flash.

What is Adobe Edge Animate CC?

Adobe Edge Animate, formerly known as just Adobe Edge, is a web development tool developed by Adobe Systems that uses HTML5, JavaScript, and CSS3 functionality. It later became part of the Adobe Edge suite, and was available as a free 30-day trial download from Adobe Creative Cloud.


1 Answers

That down vote was indeed unnecessary, this is a valid question, I have been having a similar issue for a couple days now. There is a lack of information considering how new Edge Animate is and how different every build has been. Anyhow:

My issue was displaying the animation in a div on another page. Any attempt to load the animation explicitly failed. I succeeded in resolving this issue by using the HTML object tag:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>Banner</title>

</head>

<body style="margin:0;padding:0;">

<object data="animations/liferay/liferay-00.html" style="height:175px; width:100%"></object>

</body>
</html>

Do note I did NOT change any of my URL paths. All I did was point to the publish folder.

So if you still encounter issues try re-publishing.

Hope it helps.

Update: Additional solution provided by Wayne Barron: http://youtu.be/RQKqlpCkrjs

like image 57
Nestor Ledon Avatar answered Jan 02 '23 08:01

Nestor Ledon