
Once the user has clicked ok then sticker page is displayed but the next bit of code is needed to make it appear and it is played within the actionscript layer on the main timeline:
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
_root.openStickerBook = function() {
var yStickerTween:Tween = new Tween(_root.stickerBook, "_y", Regular.easeOut, -330, -72, 1, true);
};
For each question that is answered correctly a different sticker is unlocked. The question movie clip will need to know which frame to go to in the stickerbook movieclip so I put the following actionscript on frame one within the question movieclip:

No comments:
Post a Comment