PDA

View Full Version : Problem with Z-Order of Buttons


Tek
10-07-2006, 11:20 AM
I'm having a problem understanding why I can't get some buttons to display in front according to the z-order. Attached is an animated GIF that shows it working, then I show a different set of objects (input/web object) and after that I can't get the buttons to show again. The buttons on the menu that appear when I mouse over are at the front of my project. I've even tried adding the actions to set the z-order for the buttons to the front and set the input objects to the back but it's not working either. I'm using the 'On Mouse Move' actions to determine whether or not to show the menu.

Anyone have any ideas why this isn't working?

bule
10-07-2006, 12:55 PM
You can not have Button object in front of Web, Combobox, Listbox, Mediaplayer and Flash Objects.

However, in your case, you can apply a mask to yout Web object while the buttons are shown.

Tek
10-07-2006, 01:21 PM
Thanks bule.

I haven't used masks before so I'm not sure exactly what you mean. How would that make the buttons show on top of the input object and web object?

bule
10-07-2006, 01:33 PM
You can "mask" a web object so a region of it becomes transparent, in your case, where your buttons are to be shown.

Apply the mask when the buttons should be visible, remove it when they don't.

Tek
10-07-2006, 01:57 PM
Oh I see. I just wasn't sure how the mask image was supposed to be done. I found a project on the forums called maskflash that had the code I needed.

Thanks bule.

Tek
10-07-2006, 07:46 PM
Well... that was harder than I thought. :wow

I couldn't get the input object to have a mask, so I changed it to a label. Attached is the result. Thanks again!

bule
10-08-2006, 05:00 AM
Nice!

However, You can mask an Input also (I think).

Tek
10-08-2006, 05:35 AM
I tried masking an input object and it didn't work. I gave up on this for now since now on other screens I have list boxes/progress bars/input objects that I won't be able to mask. I'm open to other suggestions to get the same effect.