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(thi s.frame_627).wait(216).call(this.frame_843).wait(420).call(this.frame_ 1263).wait(24).call(this.frame_1287).wait(529));
thanks and in advance...