PDA

View Full Version : Buttons press down


ultrax
09-13-2005, 04:53 PM
I have a few buttons, they're using movie clips to animate the rollOver and the rollOut process. I want to make a reference button when you press it down color will change and keep it untill you press to another one, so that way they'll know what area of website they are into. Does anyone know how to do that?

I found a website who has those buttons that I'd like to do:

http://www.nsd.ro/index_flash.php

ex:

>Home< | Portfolio | Contact

I have these codes in my Home button :

on(release)
{
loadMovie("home.swf","load");
}

on (rollOver)
{
tellTarget("content") {
gotoAndPlay("start");
}
}

on (rollOut) {
tellTarget ("content") {
gotoAndPlay("continue");
}
}

my rollOver/rollOut animated are working fine.
Reply With Quote

Morg
09-13-2005, 05:48 PM
hi

Well, you would have to use some kind of internal variable I would assume.

Something like this:
on (rollOver)
{
if(notClicked){
tellTarget("content") {
gotoAndPlay("start");
}
}
}

Understand what I mean? You need to let that button know that it has been clicked....

Or, alternatively, you can have a movieClip that represents your clicked state and just move it around as buttons are clicked...

ultrax
09-13-2005, 08:00 PM
It's not working, the color won't keep it after I clicked on it.
But I found another way to deal with it by using Arrays and it's working like a charm... :)

thanks anyway!


hi

Well, you would have to use some kind of internal variable I would assume.

Something like this:
on (rollOver)
{
if(notClicked){
tellTarget("content") {
gotoAndPlay("start");
}
}
}

Understand what I mean? You need to let that button know that it has been clicked....

Or, alternatively, you can have a movieClip that represents your clicked state and just move it around as buttons are clicked...