2 Replies Latest reply on Mar 11, 2014 10:46 AM by rahimhaji

    next button not working in create JS code..

    rahimhaji Level 1

      dear friends,

       

      iam converting my flash e learning lesson in to HTML5 version. i gave 2 next bottons (i mean 2 slides end next buttons). first buttons wors fine when i click i moves to next keyframe.. same code i gave in another frame not working pls refer the followign code.. and help me...

       

       

       

      if (loop == null) { loop = false; } this.initialize(mode,startPosition,loop,{});

      // timeline functions:
      this.frame_0 = function() {
        //this.gotoAndPlay(840);
      }
      this.frame_14 = function() {
        playSound("_11");
      }
      this.frame_603 = function() {
        this.stop();
        this.nxt.addEventListener("click", nextclick.bind(this));
        function nextclick() {
           this.play();
        }
      }
      this.frame_627 = function() {
        playSound("_12");
      }
      this.frame_843 = function() {
        playSound("_12a");
      }
      this.frame_1263 = function() {
        this.stop();
        this.nxt2.addEventListener("click", nextclick2.bind(this));
        function nextclick2() {
           this.play();
        }
      }
      this.frame_1287 = function() {
        playSound("_13");
      }

      // actions tween:
      this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(14).call(this.frame_14 ).wait(589).call(this.frame_603).wait(24).call(this.frame_627).wait(216).call(this.frame_8 43).wait(420).call(this.frame_1263).wait(24).call(this.frame_1287).wait(529));

       

      thanks and in advance...