0 Replies Latest reply on Mar 26, 2013 7:16 AM by ROMAINPRACHE

    Play / stop methods

    ROMAINPRACHE Level 1

      Hi,

       

      I have a basic animation with two bindTimelineAction, one listening on "play" and the other on "stop".

      I was not able to figure why, when my animation starts, I can see that both listeners are called, even if my animation isn't in autoplay mode.

       

      I have dig into the edge javascript file (edge.1.5.0.js) and find that there is a «this.stop();» in the play method.

       

      ***

      d.extend(a.prototype, n.prototype, {constructor: a,play: function(a) {

                  this.notifyObservers("play");

                  this.stop();

                  this.sort();

                  this.playing = !0;

                  if (this.context)

                      this.context.playDirection = void 0, this.context.executeTriggers = void 0;

                  var b = this.getContext(a);

                  b.timeline = this;

         ... 

      ***

       

      There is a good reason for that I guess, anyone ?

       

      Thanks.