View Full Version : Help!
Phil_Collins
09-27-2005, 02:55 PM
Hi Guys.
does anyone know the script I need to get my menu button to follow (with easing) the vertical position of the mouse pointer as the user navigates the site? (but it must stay in the sam horizontal position)
Here's the link to what I've got so far:
www.freedomedia.co.uk/copylogic
I think you'll know the sort of thing I mean. but i'd also like to limit how high and how low it can travel so it never leaves the 'content' area (doesnt stray over the company logo for example). Does anyone know what I mean and can help?
Thanks guys
Phil_Collins
09-28-2005, 12:02 PM
Does anybody know what I mean?
finchou
09-28-2005, 12:20 PM
on your clip :
onClipEvent(enterFrame){
var lex=_xmouse;
lex=min(lex, yourMaxValue);
lex=max(lex, yourMinValue);
this._x=lex;
}
oops I did it for _x. it's the same.
for the easing it's more complicated but try that already.
Phil_Collins
09-28-2005, 12:33 PM
I'll try that now, Thanks v much Finchou!
Phil_Collins
09-28-2005, 12:42 PM
Unfortunately it didnt work Finchou.. I'm probably doing something wrong (I'm pretty new to flash), If I zip it up would you be happy to have a quick look? No worries if not, I'm just pulling my hair out here!
finchou
09-28-2005, 12:52 PM
sorry it was buggy :
onClipEvent(enterFrame){
var lex=_level0._xmouse;
trace(lex);
lex=Math.min(lex, 230);
lex=Math.max(lex, 0);
this._x=lex;
}
I'm not sure I want your zip file, I'm at work :)
Phil_Collins
09-28-2005, 01:02 PM
many thanks Finchou, that works fine, just got to try and work out the easing now! aarrgh! Thanks again for your help. Phil
Phil_Collins
09-28-2005, 01:17 PM
one quick thing... please look at the latest www.freedomedia.co.uk/copylogic (excuse the crudness at the moment) the menu is inaccessible because it follows the pointer but from the top of the menu mc. how do eI make it follow the pointer so that it is in the center, so when you put your mouse over the mc it opens the menu? any idea?
compuboy1010
09-28-2005, 01:20 PM
Phil, could you sing something for us please?
Phil_Collins
09-28-2005, 01:35 PM
lol, groovy kinda love?
compuboy1010
09-28-2005, 01:56 PM
Sure, go ahead.
Phil_Collins
09-28-2005, 04:22 PM
So can anyone help me or does noone have a clue.?
compuboy1010
09-29-2005, 08:16 AM
So can anyone help me or does noone have a clue.?
What songtext is that? Groovy kinda love?
gromit
10-13-2005, 05:40 PM
Did you manage to get this to ease?
Have you tried mx.transitions yet?
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.