|[ LiB ]|
Getting input from the player via the computer's I/O devices is a mystery to mostand the mouse is no exception. In this chapter, you will discover how to detect the cursor's exact position on your stageyou'll even be able to detect its exact position within a Movie Clip. You will learn how to code familiar, yet mysterious , things like drag and drop. Overlap detecting will also be discussed. Here are the topics that will be covered in this chapter:
Detecting the mouse cursor position
Replacing the mouse cursor
Drawing lines to the cursor
Dragging and dropping
The mouse was originally invented in the 1960s by a pioneering computer scien tist named Doug Engelbart. From 1962 to 1968, Doug and his team of fellow sci entists built a revolutionary computer system called NLS, which introduced many of the technologies we take for granted today in an era when even simple desk top computers themselves were still alien technology. In addition to the mouse, the 1968 public demonstration of NLS introduced hypertext, objects, and even split-screen video conferencing! Pretty surreal to imagine such technology exist ing in a fully operational state at around the same time as Woodstock!
|[ LiB ]|