# Help with flash 8 onRelease()

**URL:** https://forum.kirupa.com/t/help-with-flash-8-onrelease/199432
**Category:** Uncategorized
**Created:** [September 2, 2006, 11:51am UTC](https://forum.kirupa.com/t/help-with-flash-8-onrelease/199432 "2006-09-02T11:51:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mr\_vai](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mr\_vai](https://forum.kirupa.com/u/mr_vai)
#### Post date: [September 2, 2006, 11:51am UTC](https://forum.kirupa.com/t/help-with-flash-8-onrelease/199432/1 "2006-09-02T11:51:26Z")

</div>

[LEFT][FONT=Arial]Hello all![/FONT][/LEFT]  
[LEFT][FONT=Arial]I’m heaving some problems with button functions,[/FONT][/LEFT]  
[LEFT][FONT=Arial]I can’t figure why the onRelease function doesn’t work on a mc within a mc,[/FONT]  
[FONT=Arial]I need that mc to open up on roll over and then it reveals 3 more mc’s and each one of those needs to point to a different url[/FONT]  
[/LEFT]  
[LEFT][FONT=Arial]On the outer mc on the \_root I have:[/FONT][/LEFT]

```auto

     [LEFT]onClipEvent (enterFrame) {
    this.onRollOver = function() {
        this.gotoAndPlay("Over");
    };
    this.onRollOut = function() {
        this.gotoAndPlay("Out");
    };
}[/LEFT]
     

```

[LEFT]

[/LEFT]  
[LEFT][FONT=Arial] This is basically tells the mc to animate if mouse over the mc or out, so far so good![/FONT][/LEFT]  
[LEFT][FONT=Arial]BUT, when applying the onRelease() inside that mc on a specific area (also a mc) it doesn’t seems to work,[/FONT][/LEFT]  
[LEFT][FONT=Arial]Here’s the code inside:[/FONT][/LEFT]

```auto

     [LEFT]onClipEvent (enterFrame) {
    this.onRelease = function() {
        trace("BTN1 pressed");
    };
}[/LEFT]
     

```

[LEFT]

i have attached my .fla file for you to see exactelly.

The file:[URL=“[http://www.pixelwebstudio.com/Menu.fla](http://www.pixelwebstudio.com/Menu.fla)”]  
[/LEFT]

[LEFT][FONT=Arial]I really racked my brain over this for 2 days…please if anyone could help me out here[/FONT][/LEFT]  
[LEFT][FONT=Arial]It would be great,[/FONT][/LEFT]  
[LEFT][FONT=Arial]Thanks a lot for looking!

[/FONT][/LEFT]
