PDA

View Full Version : rollOver counter


tomlikesflash
07-10-2004, 04:43 PM
i think this should be pritty simple and im probably missing something very simple, im trying to make a dynamic text box show how many time you have rolled over a certain movie clip, so far iv got

on (rollOver) {
play();
a++;
}
on (rollOut) {
gotoAndStop(1);
}

a is the variable the dynamic text box will display and i want it to increas by one everytime you rollOver the movie clip, can someone help?

Billy T
07-10-2004, 04:50 PM
on (rollOver) {
play();
a++;
some_txt.text=a;
}

if you are initialising 'a' on frame 1 then it will reset when you jump back to frame 1 so maybe gotoAndStop(2) instead