Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

How to import two .oam files in one html?

$
0
0

Hi there,

 

 

i'm trying to import 2 animations in my dreamweaver html file. Importing one single .oam works fine but when i try to ad the second file, nothing works. What am i doing wrong?

 

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>Unbenanntes Dokument</title>

<style type="text/css">

body {

  margin-left: 0px;

  margin-top: 0px;

  margin-right: 0px;

  margin-bottom: 0px;

}

</style>

 

 

<!--Adobe Edge Runtime-->

<script>

  var custHtmlRoot="gallerie1920/Assets/";

  var script = document.createElement('script');

  script.type= "text/javascript";

 

script.src = "http://animate.adobe.com/runtime/6.0.0/edge.6.0.0.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: "width",

    centerStage: "none",

    minW: "0px",

    maxW: "undefined",

    width: "1920px",

    height: "770px"

};

  opts.htmlRoot =custHtmlRoot;

  AdobeEdge.loadComposition('gallerie1920', 'gallerie1', opts,

  {"dom":{}}, {"dom":{}});

  script.onload = script.onreadystatechange = null;

  head.removeChild(script);

  }

  };

  head.appendChild(script);

  </script>

 

<style>

        .edgeLoad-gallerie1 { visibility:hidden; }

</style>

 

<!--Adobe Edge Runtime End-->

 

 

 

 

<!--Adobe Edge Runtime-->

<script>

  var custHtmlRoot="menue_dentzer_2/Assets/";

  var script = document.createElement('script');

  script.type= "text/javascript";

script.src = "http://animate.adobe.com/runtime/6.0.0/edge.6.0.0.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: "width",

    centerStage: "none",

    minW: "0px",

    maxW: "undefined",

    width: "1920px",

    height: "109px"

};

  opts.htmlRoot =custHtmlRoot;

  AdobeEdge.loadComposition('menue_dentzer_2', 'menue1', opts,

  {"dom":{}}, {"style":{"${symbolSelector}":{"isStage":"true","rect":["undefined","undefined","1920px", "109px"],"fill":["rgba(255,255,255,1)"]}},"dom":{}});

  script.onload = script.onreadystatechange = null;

  head.removeChild(script);

  }

  };

  head.appendChild(script);

  </script>

 

<style>

        .edgeLoad-menue1 { visibility:hidden; }

</style>

 

<!--Adobe Edge Runtime End-->

 

</head>

 

 

 

 

<body><div id="Stage2" class="menue1"></div>

 

<div id="Stage" class="gallerie1"></div>



</body>

</html>

 

 

 

 

Thanks, Tobias

 

------------------------------------------------------------------------------------------ ----------

Im working with:

Dreamweaver CC 14

Adobe Edge CC15


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>