Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

What is wrong with this counter in actionscript?

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

1901gt

VIP Member
Impact
11
on (release) {
clickcounter = 0;
if (valueNum == 20) {
nextFrame();
}
else if (clickcounter eq 0) {
nextFrame();
nextFrame();
nextFrame();
}
else {
nextFrame();
nextFrame();
nextFrame();
nextFrame();
clickcounter += 1;
}
}

Each time i test scene and type any other value other than 20, it only play the else if one but never the else one. I want user to be given 2 tries to try guess and the answer. After 2 tries, a popup will be shown saying "Incorrect, the correct answer is 20."
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Just get another counter then...
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back