[FMX] Button actions

Is there a way to use stop(), play(), gotoAndStop() & gotoAndPlay() with buttons?

Something like
[AS]btn_InstanceName.gotoAndStop(“Over”);[/AS]

I guess I could find a way around it but I’d like to know if this is possible.

What are u trying to use dat for??
:-\

I have a navigation bar on my website and it has a bunch of buttons for the diffrent pages on the site. I want the button of the page your on to be lit up when your on that page.

So if your on the “contact” page for example, the contact button would goto the “hit” state to light up.

Like I said there are better waysto do this but I’ve been wondering for awhile now.

BTW, I ment to post this in the “Action Script” section of the forums but I put it here by accident. Sorry(-:…

Hi,

If you want to do that use a movieclip and switch between two frames. 1 frame for the selected state and the other frame for the unselected state.

I dont think you can reference the frames of a button.

Viru.

This should help you

Thanks for the help. Thats what I wanted to do, just wan ted to be lazy. hehe.

Thanks again. :thumb:

Maybe this one is better

You’re welcome
:wink: