Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse lines

Status
Not open for further replies.

Nopps

MIS
Joined
Nov 18, 2000
Messages
8
Location
CA
How would i go about creating a page with lines(horizontal and vertical) crossing where the mouse point would be?
 
make two movie clips, one of just a vertical line, and one of just a horizontal line. drag these onto the stage and call them 'vertline' and 'horizline'.
make a new layer in the main scene and make two keyframes next to each other (e.g. frame 1 and frame 2). open the actionscript window for frame 1 and put:
Call(2);
now open the actionscript window for frame 2 and put this in:
vertline_x = _root._xmouse;
horizline_y = _root._ymouse;
GoToAndPlay(1);

i haven't tested this but it looks right..should work in flash 5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top