views:

54

answers:

1

Hiya. I'm new to Flash so my terminology might not be accurate so please bare with me.

I've created a button (symbol), and added a OVER state, which covers a bigger boundary than the UP state.

However when I add the symbol/button to my stage, the roll over activates on any area covered by the over state, where I only really need it covering the UP state boundary.

Does anyone know of clipping the region covered, so mouse over is only trigged by the boundaries of the UP state.

Is there a way or work around to this problem?

Cheers

Matt

+2  A: 

If you make button in stage ("convert to button" option) inside it you got 4 frames for it states. One of them is HIT - there draw your over-hit shape.

If you use AS create a new Sprite with shape taht will be your hit region. This shape sholud have alpha=0. Then add events listeners to it or other code you use for button actions.

If you have problems, just read the documentation on flash. Everything is there.

Online docs: here

Konrad
Thanks Konrad, I'll give it a go, I was getting a little overwhelmed by flash, not being used to it or it's terminology (1 week in and beginning to see how much potential it has)
Matt