I'm currently building a game with pictures. The idea is to choose the right picture when the corresponding word appears. Here's a .swf version of the game:
http://masonsklut.com/olpc/
The problem I'm having is getting the "check-marks" to appear on the image when the image is selected. Instead Flash puts the check-mark in the next frame.
This is the ActionScript used to make the check-marks appear:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
wrong1_btn.onRelease = function () {
new Tween(wrong3_mc,"_alpha",Regular.easeOut,0,100,12,false);
new Tween(wrong3_mc,"_alpha",Regular.easeOut,100,0,12,false);
}
wrong2_btn.onRelease = function () {
new Tween(wrong4_mc,"_alpha",Regular.easeOut,0,100,12,false);
new Tween(wrong4_mc,"_alpha",Regular.easeOut,100,0,12,false);
}
wrong3_btn.onRelease = function () {
new Tween(wrong5_mc,"_alpha",Regular.easeOut,0,100,12,false);
new Tween(wrong5_mc,"_alpha",Regular.easeOut,100,0,12,false);
}
right_btn.onRelease = function () {
new Tween(right3_mc,"_alpha",Regular.easeOut,0,100,12,false);
new Tween(right3_mc,"_alpha",Regular.easeOut,100,0,12,false);
nextFrame();
}
Also, you must click "Select Level" then choose a level, then hit play for the game to start.
Any suggestions?
Thanks,
Mason