Skip to main content
Participant
February 4, 2011
Question

How do I make a Mouse Trace line (puzzle type) to move forward in a Flash site

  • February 4, 2011
  • 1 reply
  • 493 views

I'm wondering how I would go about making a Mouse Trace, on a line that's preset but my choosing to let people enter into my Flash and/or progress throughout it. Basically, I have a picture of say, the number 5, I want to be able to have people use the mouse cursor to trace the 5 from one end to the next, and once completed the sites move forward. Though, I will be using my company logo which is a bit more advanced than a single number or letter form. If no one is sure what I'm talking about I've added a picture to demonstrate what I'm trying to do.

Another idea I have if this one can't be accomplished, is a slide bar.

Basically, it would look like a timeline control in say, VLC, and I would have the user drag a button from one side to the next to unlock and move forward.

Though that may seem a bit more simple that my main idea, I would also like to be able to get really advanced with this second function and make a series of slide bars, say, 3, and they have to be slid in a certain manner, like slide bar 1,3,2 then it unlocks and moves forward.

Any and ALL thoughts and ideas are welcome.

-Splendid Angst

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 4, 2011

if you can assume your shapes are traced when a user starts at one point, drags the mouse to your end-point and does NOT go outside the shape boundary, you can use a bitmapdata hittest and loop to check the mouse stays inside your shape and you can check that they start and end within a determined distance of the start and end.