# Need some help please

**URL:** https://forum.kirupa.com/t/need-some-help-please/20274
**Category:** Uncategorized
**Created:** [May 7, 2003, 12:46am UTC](https://forum.kirupa.com/t/need-some-help-please/20274 "2003-05-07T00:46:26Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Ifonly](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@Ifonly](https://forum.kirupa.com/u/Ifonly)
#### Post date: [May 7, 2003, 12:46am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/1 "2003-05-07T00:46:26Z")

</div>

this should be fairly easy for someone with any flash knowledge to answer… I followed a flash tutorial to make a rollover menu from CBT online EXCATLY. unfortunately i only realized that the tutorial was for flash 5 not MX after i completed it. now my menu doesn’t work, i’m getting the error:  
Symbol=Main Menu\_MC, Layer=Main, Frame=1: Line 1: Mouse events are permitted only for button instances  
on (rollOver) {

Symbol=Main Menu\_MC, Layer=Invisible Button, Frame=22: Line 1: Mouse events are permitted only for button instances  
on (rollOver) {

I’ve tried to make the menu button both a movie and a button but neither work… I’m really stuck here and I hope that someone can help me out. Thank in advance

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 1:34am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/2 "2003-05-07T01:34:37Z")

</div>

you publish the .swf to flash 6, not flash 5. 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 1:43am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/3 "2003-05-07T01:43:00Z")

</div>

i have it set to publish in flash 6… i still get the same error though

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 1:49am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/4 "2003-05-07T01:49:39Z")

</div>

well, i can’t think of any other reason… :-  
why don’t you attach your .fla? 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 2:00am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/5 "2003-05-07T02:00:39Z")

</div>

i can’t attach it… it’s too large for the forums… email me and i’ll email it to you  
[tschopp1@telus.net](mailto:tschopp1@telus.net)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 2:02am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/6 "2003-05-07T02:02:17Z")

</div>

wouldn’t it be faster if you just send it to me? \*\*\*\*\*@msn.com 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 2:12am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/7 "2003-05-07T02:12:24Z")

</div>

hi ifonly! welcome to kirupa! =)

try placing your **on (rollOver) {** script on the buttons and not on the timeline or frame…

hope that helps…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 4:17am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/8 "2003-05-07T04:17:34Z")

</div>

i just didn’t want to ask you to post your email address 😉 and i’m not sure what you mean noxious… i think that i have to put the script onto the timeline because i have several actions for one button…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 5:50am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/9 "2003-05-07T05:50:26Z")

</div>

- noxious  
you were right. =)

- Ifonly  
if the script is in the frame actions, you use:

```auto
this.onRollOver = function() {
statement(s);
};

```

😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 6:00am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/10 "2003-05-07T06:00:11Z")

</div>

Ifonly - you are allowed to put as many actions on a button that you want, as long as they are all grouped together. that is to say, if you have three things that should “fire” upon “release” of the button, they should all be in a single release handler.

like so

on(release){  
this.gotoAndPlay(2);  
this.\_alpha=50;  
this.\_rotation+=5;  
}

not like

on(release){  
this.gotoAndPlay(2);  
}  
on(release){  
this.\_alpha=50;  
}  
on(release){  
this.\_rotation+=5;  
}

* * *

they are correct in that you CANNOT EVER use an on(release){} method on a frame. The actions panel must say “Object Actions” for you to use that command.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 6:19am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/11 "2003-05-07T06:19:19Z")

</div>

it worked!! thanks guys!! now i just have to make it so my invisible button works… hehe, i really appreciate the help. It’s so nice to find people on the internet that sincerely want to help someone else out (you don’t get a lot of that on counter-strike servers :P) thanks again! 😃

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 6:58am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/12 "2003-05-07T06:58:50Z")

</div>

> _Originally posted by Ifonly_  
> **now i just have to make it so my invisible button works…**

i used **this** just as an example, you can use the instance name of a Button/MovieClip.

```auto
someButton.onRollOver = function() {
statement(s);
};

```

got it? =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 7:50am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/13 "2003-05-07T07:50:18Z")

</div>

yes, i think so… (i’ve really only been using flash for about 2 days now…) and the statement would be like:  
play(1);  
}

right?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 7:59am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/14 "2003-05-07T07:59:52Z")

</div>

play has no parameters, you just use it as:

```auto
play();

```

if you want to play a different frame, then you use gotoAndPlay.

```auto
gotoAndPlay(frameNumber);
// or
gotoAndPlay("frameLabel");

```

=)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 4:06pm UTC](https://forum.kirupa.com/t/need-some-help-please/20274/15 "2003-05-07T16:06:17Z")

</div>

lol, thanks… i’m gonna have to be careful or else i’m going to have to take math again 😛 but this action script is totally cool! i’ve never done anything like this before, i’ve only used Maya which is completely different

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 4:13pm UTC](https://forum.kirupa.com/t/need-some-help-please/20274/16 "2003-05-07T16:13:47Z")

</div>

yeah… you’re going to love it!! 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 7, 2003, 6:35pm UTC](https://forum.kirupa.com/t/need-some-help-please/20274/17 "2003-05-07T18:35:13Z")

</div>

lol, i totally know why i got that error now!!! aaahaha, i feel so dumb… mouse events are only allowed for button instances… i had to put the action on the button not the timeline… exactly what you guys said before, i just didn’t really understand it. i didn’t know that you could do that, i thought that everything was only on the timeline… THANKS!!!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 8, 2003, 6:59am UTC](https://forum.kirupa.com/t/need-some-help-please/20274/18 "2003-05-08T06:59:37Z")

</div>

woooh!? maya you said!? awesome!!! …i really like to learn that! ü

;)! keeping summer kewl!!
