Results 1 to 4 of 4
Thread: Simple hit & stay script?
-
March 7th, 2006, 05:41 AM #192Registered User
postsSimple 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!
-
March 7th, 2006, 10:51 AM #23Registered User
postsChappo, 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
Originally Posted by Chappo
-
March 7th, 2006, 03:47 PM #33Registered User
postsOkay, 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
-
March 7th, 2006, 04:30 PM #492Registered User
postsexactly what i needed

Will have to tweak the example
thank you both!
Similar Threads
-
Need help with a simple typing game
By keitai in forum Game/AI ProgrammingReplies: 14Last Post: March 6th, 2006, 11:22 AM -
Button to stay on HIT color
By linoleum in forum Flash IDEReplies: 4Last Post: July 30th, 2005, 04:48 PM -
Simple html and java script navigatation
By chup in forum Web (HTML5, CSS, JavaScript)Replies: 0Last Post: April 15th, 2005, 02:45 AM -
Ok what I have is a simple if else script, can anyone help to improve it for a login?
By trevorsaint in forum Flash IDEReplies: 8Last Post: May 28th, 2004, 10:18 AM -
Simple script help (loop sort of)
By Bodom78 in forum ActionScript 2 (and Earlier)Replies: 2Last Post: July 14th, 2002, 10:57 PM

Reply With Quote

Bookmarks