Moviclip Button Question

Hi, I feel stupid asking this one, but in ways MX is still new to me and even after searching the forum, i cant seem to find the answer, so here goes…

OK, ive got a menu that consists of buttons that are basically text(with up, over and hit set). I needed to do some scripting, so the buttons were then converted to movieclips, and now that they’re movieclips, the ‘hit area’ is basically only any of the text, , despite the fact that the hit areas for the buttons are rectangles the whole length of the text, and the over action doesnt work either (it should change the text to a different color. To give you an example of what i mean, i copied one of the buttons over to this .fla here – is there a way to get the button to function correctly again yet still being able to use the scripting functions i need to use? Maybe its something so simple, im just not seeing it after staring at the screen for so long, so any help would be much appreciated!!

Jen

You dont need to convert it to a movie clip.

But every time i tried to utilize the scripting i need to get working, id get errors until i converted to movieclips, is there another way to work that code on buttons? Thanks!

Jen

Here you go :slight_smile: You didn’t have to make it a movieclip, on(release) works perfectly on buttons. If you get error messages (by the way, can you post them here ?), the problem is somewhere else.

Oh man, im like a total dweeb, i cant believe i missed the problem! THANKS!!! :slight_smile:

Jen

Oops, now i remember why i had also converted to movie clips! I have code like this inside the movieclips, so that when people clicked on the buttons/movieclips, certain background images would slide into place from another preloaded swf in the whole project.

Here’s the code inside the movieclip/button:

this.onPress = function() {
endX = -450;
clearInterval(_root.contents.movebackgroundinterval);
_root.contents.movebackgroundinterval = setInterval(_root.contents.movebackground, 80, endX);
}

Is there a way to get this function to work still with using the actual button and not the converted movieclip/button? Thanks yet again!!!

Jen

Sure. I left the previous actions also there so if you don’t need them, just delete those two lines.

Hey cool, that worked! Thanks once again!!

Jen

You’re welcome :slight_smile: