Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 4 of 4

Thread: Simple hit & stay script?

  1. #1

    Simple hit & stay script?

    Was wondering how i could do this with the minimum of code and the most effective/easiest


    Lets say you have 12 images and when you hover over them, they change colour.
    But, if i click on any of them it should stay on that hover color and also perform some javascript code.

    What is the best way to do this ?

    Thank you in advance!

  2. #2
    Chappo, I am actually trying to figure out something similar. I need help figuring out this script I have. Someone tried to help me but it doesn't work. I think I am missing something simple. Since I am new this isn't easy for me.

    Here...say we are using 2 images or buttons. (as movie clips)

    function buttonMov(b) {
    for (i = 1, i <= 2, i++);
    if (i = b) {
    _root["b"+i].gotoAndStop(2)
    } else {
    _root["b"+i].gotoAndStop(1)
    }
    }

    then the invisable button in the mc would have...

    on(press) {
    gotoAndStop(2);
    _root.buttonMov(b2);
    }

    Can someone help me with this simple task. It will also help out Chappo.

    peace
    tim




    Quote Originally Posted by Chappo
    Was wondering how i could do this with the minimum of code and the most effective/easiest


    Lets say you have 12 images and when you hover over them, they change colour.
    But, if i click on any of them it should stay on that hover color and also perform some javascript code.

    What is the best way to do this ?

    Thank you in advance!

  3. #3
    Okay, so I figured out what I wanted to do. Here is a link to a site that had what I needed...http://www.canfieldstudios.com/flashmx/

    It has what you need. Download the fla and tweak it for your need.

    peace
    tim

  4. #4
    exactly what i needed
    Will have to tweak the example

    thank you both!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012