NaN:NaN
NaN:NaN
--:-- / --:--
Newgrounds Background Image Theme

Hrucdyvcrund just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

IF statements in flsh5

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

IF statements in flsh5 Mar 19, 2001


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 Mar 21, 2001


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 Mar 21, 2001


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 Mar 22, 2001


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