00:00
00:00
Newgrounds Background Image Theme
Upgrade Your Account!

HO HO HOPE you become a Newgrounds Supporter this year!

We're working hard to give you the best site possible, but we have bills to pay and community support is vital to keep things going and growing. Thank you for considering!

Become a Supporter so NG can see another Christmas!

IF statements in flsh5

1,416 Views | 3 Replies
New Topic Respond to this Topic

IF statements in flsh5 2001-03-19 22:50:49


What the damn??? I just switched over from usin flash4 to flash5... im not too impressed. some better features, more frame actions and whatnot, but the friggin IF STATEMENTS dont work to frigin well.. heres what i got: if(getProperty("/won",_currentframe)=2)
i took out the spaces so it was shorter.. anyways, i have this, and even if the current frame of /won isnt 2, the frigin action inside the if statement still runs! anyone wanna help? im a third year comp science student, this isnt making sence.......

Response to IF statements in flsh5 2001-03-21 03:20:00


i'm pretty sure they changed the equals values on you... now you have to do if(getProperty("/won",_currentframe)==2) to get something that equals it exactly... a few other languages do this too, and flash decided to jump the boat... i'm not certain because i have yet to actually program in flash 5 besides non-conditional actions but i'm certain i read that in the 'what's new' section or somewhere else... try that and it should work.

IF statements in flsh5

Response to IF statements in flsh5 2001-03-21 19:37:43


Yes, when flash 5 actually worked on my computer, I always had to use == for ifs.

Example:

if
var == 5
play

Response to IF statements in flsh5 2001-03-22 09:58:24


Don't get it... And I aint double posting! fuck that function!