View Full Version : Button won't stop flickering
mrand01
09-26-2003, 11:59 AM
I have a button with an over state. When I hover over the button, it flickers like crazy and I can't make it stop. The button is all text, but the Hit layer is a solid rectangle the size of the text block...I have never seen behavior like this before, any explanation?
EDIT: The button is in the over state of another button (drop down menu style)
I'm using FMX2004 Pro
Billy T
09-26-2003, 12:12 PM
you cant have a button in a button
mrand01
09-26-2003, 12:13 PM
um, then how do I make a drop down menu, button in a movieclip in a button?
Billy T
09-26-2003, 12:17 PM
http://www.tableau.com.au/tutorials/popup_menu_tute/
mrand01
09-26-2003, 01:09 PM
i followed the tute, didn't help. For some reason nothing is working...heres my layout:
I have a movie clip, inside this movie clip is another movie clip, inside that movie clip is another movie clip, inside THAT movie clip is a butotn...
so mc.mc.mc.btn
I address it this way...but I can't make actions occur
dr.swank
09-26-2003, 03:03 PM
assuming you are using MX you can write onPress() functions on regular mc's. You don't need a button at all, unless of course you really want the overState...
Menu_mc
->subMenu1_mc
->subMenu2_mc
-->subMenu2sub1_mc
-->subMenu2sub2_mc
then write your code like this:
Menu_mc.subMenu2_mc.subMenu2sub1_mc.onPress=functi on(){
trace(this._name+" was pressed");
}
the rest you can just follow the jist of BillyT's tute.
doc
Xenozip
09-27-2003, 04:51 AM
If you're using text for your buttons, make sure it's nothing as simple as forgetting to define the Hit areas inside the button.
Up/Over/Down should be your text and background animations.
The "Hit" frame should not be text at all (or the button will flicker when moving the mouse across the text).
BTW, I'm not patronizing you. I just can't think of why else they would be "flickering".
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.