hi, need help here.
here is the fla file. it can drag into the green box. i want to count how many grey box already have in the green box. i can drag the grey box into the green box n the code i write is just for count how many time the grey box had click it doesnt use. i want it can count how many grey box already drag into the green box.
later will click on go btn n it will go to target according counting.
i try to use on(release) on the green box n st the green box as btn but it cant count for me when i release the grag grey box.
i put at grey box code.
who know please reply me .
on (press) {
startDrag(this, true);
}
on (release) {
stopDrag();
/*count++;
trace(count);
if (count == 1) {
tellTarget ("m1") {
gotoAndPlay(2);
}
}
if (count == 2) {
unloadMovie("m1");
tellTarget ("m2") {
gotoAndPlay(2);
}
}
if (count == 3) {
unloadMovie("m2");
}*/
if (this._droptarget == "/green_box") {
_root.green_box.gotoAndStop(2);
}
}
- on (press) {
- startDrag(this, true);
- }
- on (release) {
- stopDrag();
- /*count++;
- trace(count);
- if (count == 1) {
- tellTarget ("m1") {
- gotoAndPlay(2);
- }
- }
- if (count == 2) {
- unloadMovie("m1");
- tellTarget ("m2") {
- gotoAndPlay(2);
- }
- }
- if (count == 3) {
- unloadMovie("m2");
- }*/
- if (this._droptarget == "/green_box") {
- _root.green_box.gotoAndStop(2);
- }
- }
n for the green box i duuno how to match it with the count for the dragging n also the go btn.
anyone know please reply me here cos very urgent for this.