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

Is is possible to bind an action in bootstrap function?

$
0
0

I would like to handle some external functions (phonegap sound) when the user click in a button that was inside my animation, what is the best way to do that?

 

AdobeEdge.bootstrapCallback(function(compId) {

 

// "comp" is now equivalent to the Stage's "sym" variable.

comp = AdobeEdge.getComposition(compId).getStage();

 

 

// is it possible? how?

Symbol.bindElementAction(compId, symbolName, "${_ButtonNext2}", "click", function(sym, e) {

         sym.play("dois");

 

      });

//comp.getStage().getSymbol("rotatingSquare").play();

});

 

Best Regards


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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