Sunday, May 6, 2012

[Action Script] help with if...else May,2012

I made this :

ActionScript Code: var boo="candy"if (boo =="candy"){trace("CANDY!");button.addEventListener(MouseEvent.CLICK,candy); function candy(event:MouseEvent){boo =="notcandy";}}else {trace("CHOCOLATE!");}}
Why my else command doesn't work?
help with if...else

Related Post



0 comments: