Hi,
While I was making menu of my new game, I take this problem in Flash 8.
Flash 8 says :
A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive.Do you want to abort the script.
Yes or No.
I think, this problem from my using while and hittest. Where I make mistake ?
Codes :
Code:
credits._visible = false;
howtoplay._visible = false;
onEnterFrame = function () {
while (man.hitTest(button1)) {
if (Key.isDown(Key.ENTER)) {
credits._visible = true;
}
}
while (man.hitTest(button2)) {
if (Key.isDown(Key.ENTER)) {
howtoplay._visible = true;
}
}
while (man.hitTest(button3)) {
if (Key.isDown(Key.ENTER)) {
gotoAndStop("Tanitim", 1);
}
}
while (man.hitTest(quitbutton)) {
if (Key.isDown(Key.ENTER)) {
fscommand("quit", true);
}
}
};
credits = Movie Clip
howtoplay = Movie Clip
man = Movie Clip
And all buttons are movie clip.
Where is problem ?
Sorry for my bad English.