-
1. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
clbeech Nov 6, 2009 9:50 AM (in response to 444Flash444)1 person found this helpfulhmmm - well it seems that the final 'else' is causing the statement to fail - not certain why at this time - odd in a way - however to remedy, use an 'if else' as the final condition. also you'll want to change the event object type to MouseEvent - rather than just Event
-
2. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
Kalisto Nov 6, 2009 10:39 AM (in response to 444Flash444)You have a misstake else (currentFrame == 5) do nothing but it is used for else. After that trace("Clicked 4"); is simple command
or in other words:
else (currentFrame == 5)
{
trace("Clicked 4");}
is equal to
else (currentFrame == 5)
trace("Clicked 4"); // this will alway be executeds -
3. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
clbeech Nov 6, 2009 11:45 AM (in response to Kalisto)LMAO! omg, kalisto - i can't believe i didn't see that! PHAHAHAHAHAH!
-
4. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
Kalisto Nov 6, 2009 11:49 AM (in response to clbeech)And "LMAO" is?
-
5. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
444Flash444 Nov 6, 2009 12:08 PM (in response to Kalisto)oh perfect that works thanks!
clbeech thanks for pointing out the Event. I made a mistake there and didnt notice
-
6. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
Dinkyfish Nov 6, 2009 12:15 PM (in response to Kalisto)I believe he means "Laughing my a** off"
-
8. Re: if current frame == 1 dosomething ... else (currentFrame ==2) do something else. Not working.
clbeech Nov 6, 2009 2:37 PM (in response to Kalisto)yup that's right - laughing at my own stupidity for not noticing that error - LOL!