00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

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,276 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!