html5 - Call composition ready of (edge animate) from javascript -


i have problem in html5 edge animate. have created animation using edge animate. call composition ready of edge animate outside. tried calling using $.edge.registercompositionreadyhandler( compid, handlerfn, options ) , gave error referenceerror: $ not defined . not able solve , did not find enough documentation this. can 1 please me.

my code looks

<!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="teste1_edgepreload.js"></script> <script type="text/javascript" src="teste1_resize.js"></script>  <style>     .edgeload-edge-1429726 { visibility:hidden; } </style> <!--adobe edge runtime end-->  <script>   $.edge.registercompositionreadyhandler("edge-1429726",scalestage) //scale stage inside javascript fn teste1_resize.js function mover(){       var stage = $.edge.getcomposition("edge-1429726").getstage();       console.log($("#stage").height());       stage.mover();  } </script>  </head> <body style="margin:0;padding:0;"> <div id="stage" class="edge-1429726">   <input type="button" value="mover" onclick="mover();"> </div>  </body> 

thanks in advance

with ena's , little modification able find answer.

adobeedge.bootstrapcallback(function(compid) {     adobeedge.symbol.bindelementaction(compid, 'stage', 'document', 'compositionready', function(sym, e){         // composition loaded, stuff here     }); }); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -