Some Button Questions (AS2.0)
i made coloring book game in 2.0 (i did way put individual pieces of code various buttons - there around 50). based off tutorial found online. works well. these codes used:
in top layer, have in frame 1 (there 1 frame in whole thing):
_root.fillcolor = 0xffffff;
each colorable part of picture movie clip button inside, , each of buttons has following code:
on (press) {
color = new color(this);
color.setrgb(_root.fillcolor);
delete color;
}
and have 2 color buttons can "dip" pointer into, can click on colorable areas , color them. code color buttons is:
on (release) {
_root.fillcolor = 0xc71e07;
_root.brush.gotoandstop(8);
}
note: hex code there red button; it's different other color.
anyway, works well. need 2 buttons have no idea how make.
button 1: "show answer" button pops little graphic showing picture should like. know how in 3.0 (i have object fly in off-stage on button press), not in 2.0. 1 thing tried have skip different scene or different frame in object exists in place. issue there causes coloring user has done disappear.
button 2: "clear board" button resets whole thing. i've tried using gotoandplay(1) action button, doesn't anything.
any appreciated. thanks.
show code use in as3 , i'll translate as2.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment