# Unloading onClipEvents..... PLease help!

**URL:** <https://forum.kirupa.com/t/unloading-onclipevents-please-help/222374>\
**Category:** Uncategorized\
**Created:** [April 12, 2007, 8:00pm UTC](https://forum.kirupa.com/t/unloading-onclipevents-please-help/222374 "2007-04-12T20:00:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cookingkym](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@cookingkym](https://forum.kirupa.com/u/cookingkym)\
**Post date:** [April 12, 2007, 8:00pm UTC](https://forum.kirupa.com/t/unloading-onclipevents-please-help/222374/1 "2007-04-12T20:00:03Z")

</div>

Hey Everyone.

Im having a problem with a unloading a onClipEvent.

I have a web site which ive set up with a content\_mc on the main scene and all the content inside that mc.

In my main scene i have a photo with a page curl effect, that is set off by a onClipEvent.

I only want this effect on the home page in the main scene, so how do i unload it after i go into the other pages???

Ive spent hours trying everything i know…

Please help!!!

Many many thanks

ck

My code as is:

onClipEvent (enterFrame) {  
if (\_root.\_xmouse\>\_root.x1 and \_root.\_xmouse\<\_root.x2 and \_root.\_ymouse\>\_root.y1 and \_root.\_ymouse\<\_root.y2) {  
tellTarget ("\_root.next") {  
gotoAndStop(2);  
}  
} else {  
tellTarget ("\_root.next") {  
gotoAndStop(3);  
}  
}  
}
