# On Statements

**URL:** <https://forum.kirupa.com/t/on-statements/246688>\
**Category:** flash\
**Created:** [December 13, 2007, 2:28pm UTC](https://forum.kirupa.com/t/on-statements/246688 "2007-12-13T14:28:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rundevo](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@Rundevo](https://forum.kirupa.com/u/Rundevo)\
**Post date:** [December 13, 2007, 2:28pm UTC](https://forum.kirupa.com/t/on-statements/246688/1 "2007-12-13T14:28:47Z")

</div>

Hello all!

Im fairly comfortable with AS3, but I had to go back to AS2 to solve a problem with clickTag which the ad networks doesnt support yet in AS3.

I have a clickTag function that covers the whole stage, now, how on earth do I add a way to track over and out statements when the clicktag is covering the whole stage?

The clickTag script looks like this,

on (release) {  
if (clickTAG != “”) {  
getURL(clickTAG, filmTARGET);  
}  
}

I want to be able to add a code that looks something like this,

on (rollOver) {  
gotoAndPlay(“stage2”)  
}  
on (rollOut) {  
gotoAndPlay(“stage1”)  
}

How can I accomplish that when the clicktag code is contained in a button that covers the whole stage? No way of tracking the on and out states then is it?

Maybe I am doing the clicktag wrong, who knows 🙂

Anyways, would be really thankful if someone could help me out with this.

Thanks in advance!

/Rundevo
