PDA

View Full Version : mouse follow



nobody
February 24th, 2003, 08:14 PM
in my never ending quest to completel every tutorial here at kirupa i stumbled upon probably a really easy to solve problem.. but heres what it is
i have one frame.. and the code below is whats on the frame.. the action isnt on any particular thing.. i dont know if it should be.. i just applied to to the frame
also i have an x box and a y box.. both dynamic text boxes labeled with the appropriate variables.. i think.. hmm any ideas as to why the values just stay at 0 the whole time?
thanks in advance

xval = _root._xmouse;
ycal = _root._ymouse;

nobody
February 24th, 2003, 08:16 PM
ycal = _root._ymouse;
its actually yval in the animation.. sorry

nobody
February 24th, 2003, 08:49 PM
i really need help.. pleaaaaaase
i dont get what to apply the actionscript to.. and does it need more than what i just posted and im lost..

davidchang
February 24th, 2003, 08:59 PM
could u attach the zip?

davidchang
February 24th, 2003, 09:02 PM
instead of applying it in frame1, put the script in a:
onClipEvent (mouseMove) handler

davidchang
February 24th, 2003, 09:15 PM
see if the attached fla is wat ur looking for, the script in the little white dot

nobody
February 24th, 2003, 09:35 PM
i think thats what im looking for but i cant find anything in that file.. ill attatch mine..

davidchang
February 24th, 2003, 10:11 PM
hey i "fixed" it, but u shouldnt follow it, cuz this is how things were done in flash 4

what was wrong with the original 1 i did, i'll explain anything u cant follow

nobody
February 25th, 2003, 10:26 AM
cool, thanks.. now i have questions..
first of all.. where did u put the code to make it work? i cant find it
secondly.. what did u mean by the //this is useless stuff... did u mean my code was useless or your note was useless
and also.. when the x coordinate always has .95 on the end of the number.. hmmmm.. im slightly less confused now tho, thanks

nobody
February 25th, 2003, 10:32 AM
oops... the .95 thing only happens when i view it in flash.. but once i publish it its fine.. but i still need to know where the code is...

nobody
February 25th, 2003, 11:19 AM
hey.. i went through yours and then tried to make my own without looking at yours... and i figured everything out.. so u did a great job helping
thanks so much for the help