I would like to use the button affect where an arrow (or any object for that matter)moves to the button your mouse rolls over. The effect I am talking about is displayed on http://www.somacltd.com/v1/ where the bar moves under the button your mouse rolls over. Please attach an example if you have one of this effect. That would help TREMDOUSLY. Thanks.
heh ok i think i can accutally give you that answer to this one
ok all you have to do is set a the little arrow thing to a movie clip then you make you buttons and me the end position of you thing
the buttons x/y pos.
[AS]
//////////this goes on the first frame//////////////
onEnterFrame = function(){
endx+= (xpos-your mcs name._x)/8;
endy+= (ypos-your mcs name._y)/8;
arow._x=endx;
arow._y=endy;
};
//////////////////this goes on your buttons////////////////
on(rollOver){
xpos =your button name._x;
ypos = your button name._y;
}
[/AS]
believe it or not i tested it and it worked would give you a example but i cant up load stuff at work.
ok well srry about my poor english
-and im off
Booyaka,
Thanks for the code… but it doesn’t work for me… and I can’t see where the problem is, even though I’ve followed your suggestions to the letter.
I have five buttons and an mc, each one individually named. the names are correct in the As but nothing is happening.
What is “arow”? Or do you mean “arrow”?
Can you explain further. Thanks.
heh my bad man i was at work and my supervisor was hasslen me soo i had to speed it up.
basicall the part where it says “arow” chage it you to the name of mc you want.
here the code fixed
[AS]
//////////this goes on the first frame//////////////
onEnterFrame = function(){
endx+= (xpos-your mcs name._x)/8;
endy+= (ypos-your mcs name._y)/8;
your mcs name._x=endx;
your mcs name._y=endy;
};
//////////////////this goes on your buttons////////////////
on(rollOver){
xpos =your button name._x;
ypos =your button name._y;
}
[/AS]
im also going to give you a fla file just in case you dont quite get it.
srry for my poor english
-and im off
Hey Booyaka…
Thanks for your help. NOW I see what ya doing…
It all works a dream…
Stay cool!
Update:
I checked your stuff on a file of my own and I’m ****ed if I could get it to work, UNTIL… I noticed I was using a file with Actionscript 2.0… when I changed that to v.1.0 everything works a treat!
Oh and the “Check syntax” button indicated “no errors”…
But the question remains… (in my mind at least) what would the code be for AS 2.0? Any ideas
… not sure if you got (will get) the update to my post above.
If yes, I’d be interested in your comments.
Thanx
hm… the AS 2 version im preety sure it can be done
i just gave you a quick idea how to do it
it would probobly be better if you did it with a funcition
that way it would work with AS 2
they its down right now is more a of flash 5 thing
lol srry about that.