2 Replies Latest reply on Jan 9, 2013 8:41 AM by EnthusiastOfTheMind

    How do you call a CreateJS function from Edge?


      Say you need a slightly more sophisticated animation and used a CreateJS from Flash.


      I've placed the CreateJS in a container, and I've been able to communicate from CreateJS to Edge symbol with no problem:


      /* js

          this.onClick = function () {

                        var comp = $.Edge.getComposition("EDGE-25177479");

                        var stage = comp.getStage();







      But how do it the other way, and create a function from within Edge to call upon the CreateJS canvas ("myCanvas")?


      I want to call a "gotoAndPlay("start");" label on the main timeline of the canvas element. My syntax is completely wrong:


      //on click

      var canvas = document.getElementById("myCanvas");

      var context = canvas.getContext("2d");