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
you publish the .swf to flash 6, not flash 5. 
i have it set to publish in flash 6… i still get the same error though
well, i can’t think of any other reason… :-
why don’t you attach your .fla? 
i can’t attach it… it’s too large for the forums… email me and i’ll email it to you
tschopp1@telus.net
wouldn’t it be faster if you just send it to me? *****@msn.com 
hi ifonly! welcome to kirupa! =)
try placing your on (rollOver) { script on the buttons and not on the timeline or frame…
hope that helps…
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…
this.onRollOver = function() {
statement(s);
};

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.
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! 
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.
someButton.onRollOver = function() {
statement(s);
};
got it? =)
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?
play has no parameters, you just use it as:
play();
if you want to play a different frame, then you use gotoAndPlay.
gotoAndPlay(frameNumber);
// or
gotoAndPlay("frameLabel");
=)
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
yeah… you’re going to love it!! 
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!!!
woooh!? maya you said!? awesome!!! …i really like to learn that! ü
;)! keeping summer kewl!!