# Having a little isssue with a if statement :(

**URL:** <https://forum.kirupa.com/t/having-a-little-isssue-with-a-if-statement/190730>\
**Category:** flash\
**Created:** [June 14, 2006, 9:29am UTC](https://forum.kirupa.com/t/having-a-little-isssue-with-a-if-statement/190730 "2006-06-14T09:29:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [June 14, 2006, 9:29am UTC](https://forum.kirupa.com/t/having-a-little-isssue-with-a-if-statement/190730/1 "2006-06-14T09:29:22Z")

</div>

```php
clicked = 0;

if (clicked == 0) {
	trace(clicked)
	elements.cselection.onRollOver = over;
	elements.cselection.onRollOut = out;
} else if (clicked == 1) {
	elements.cselection.enabled = false;
}

elements.cselection.onMouseDown = function() {
	clicked = 1;
	trace(clicked)
	this.gotoAndPlay(17);
}

```

Basically if the button is clicked I set the variable to 1, so the hover and rollout should be disabled but for some reason it is not… any ideas?
