MX: You can't have buttons in a movie ? example given

why doesn’t this work?

Or is it just how flash is.

I just made a quick stuipid example.

Basically, once you use action script over an existing movie that has a button, that button in the movie no longer works.

I have a more intricate example, but this should do… in it, I had a roll out menu, broke it up into pieces UP,OVER, DOWN. When I tried the final button it wouldn’t go into an OVER state… totaly flakey sometime it would go in OVER state when you were outside of the thing not over the button.
BUT it would NEVER go into the OVER state when you were over the button. So in this case the opposite was happening than in the exaple I have given here. The button action would occur inside the movie clips inside this button, but the top level button that held everything together wasn’t functioning.

So I made this little example and was wondering if this is just how it is. (Although it is the opposite, now the lower layer button doesn’t work). You can’t get to layered?
I have a movie with a button on it. Works by itself. Now use that move and assign some action script code to detect Events (mouse) on the whole move, buttons don’t work now underneath that.

So events can’t get passed down… ?

i looked at your fla, i didn’t really read your post :-\ but you have an on rollover in an onrollOver. I think that is the problem why the button isn’t working…

That is what I am wondering. Is that allowed? Two events?
It works for two buttons, does it just not work for a movie and a button?

I does work if you are using an “onrollover” with a button that has an “onrollover”.

However, if you have a movie with a button (onrollover) in it and you use an “onrollover”, now it doesn’t work…

Is there something specifically you want to achieve? like an example or something? because it would be annoying since the person would always rollover the big circle before rolling over the text…

Get it?!?!

Yes I want them both to work this is just a small example of what is being done in larger system.

So for this little example why can’t you have the button still function when you add the other rollover action script.

So ideally for this example should be able to roll over the thing, it does whatever you put in that handler. Then you should be able to have the button functioning and able to carry out its actions.

*Originally posted by blah-de-blah *
**Is there something specifically you want to achieve? like an example or something? because it would be annoying since the person would always rollover the big circle before rolling over the text…

Get it?!?! **

You could change the rollover to something like onRelease then if you prefer. The point is why doesn’t this work. Is this not allowed in Flash?

You buttons on movies stop working if you assign event handlers to an instance of the movie???

:q:

I am having the same kind of issues.
basically its a button inside a mc and all the button actions are gone once you assign some button properties to the mc.

anyone know work around for this?