PDA

View Full Version : FMX advanced buttons (mcs)



borispc
July 29th, 2003, 02:11 PM
Hi again!
I'd like to know if there is a way to do the following:
have a movieclip to act as a button, that is:
> have an "over" and "out" states but at the same time have another frame that is used to have an "active" state when clicked.

The problem is the following: since there is a rollOut state defined, when clicked the mc jumps to the active state (frame) but returns to the out state when cursor moved out of it of course...so...how do you have a button with, over, out and active states?

kode
July 29th, 2003, 02:38 PM
The cheapest way... :P


PS. You don't like that way? You could modify senocular's code found here: http://proto.layer51.com/d.aspx?f=663.

borispc
July 29th, 2003, 02:44 PM
that is just what I meant thanks...I'm just not sure how it works completely...
where do you define the rollover state???

kode
July 29th, 2003, 02:49 PM
I'm not defining anything, it's a simple Button in the first frame of the MovieClip. ;)

That's why I said it was the cheapest way. :P

borispc
July 29th, 2003, 02:51 PM
oh I see...thanks anyway...at least works :)

kode
July 29th, 2003, 02:53 PM
No problem. :P