MoveInteractor

1 view
Skip to first unread message

Kyle Johnson

unread,
Apr 4, 2010, 10:52:35 AM4/4/10
to 6.813
For problem two it says that our MoveInteractor class should be
capable of dragging any components around inside their container.
Does this mean that the components should not be allowed to leave
their container, or just that their behavior becomes undefined upon
leaving their container?

Thanks,
Kyle

Michael Bernstein

unread,
Apr 4, 2010, 3:00:11 PM4/4/10
to 68...@googlegroups.com
Hi Kyle,
Lacking an explicit requirement here, I'd go with the same description you had for Part 1:
If the mouse pointer leaves the checkerboard during the drag operation, the dragged checker may either follow it or stop wherever it is on checkerboard — the behavior is up to you. But if the mouse pointer moves back into the checkerboard, the checker should resume following the mouse. If the mouse button is released when the mouse is off the checkerboard, the behavior is undefined and up to you.

If the mouse leaves the container and then comes back, you should make sure that it resumes following.
- Michael



--
To unsubscribe, reply using "remove me" as the subject.

Kyle T Johnson

unread,
Apr 4, 2010, 6:10:51 PM4/4/10
to 68...@googlegroups.com
Michael,

Thanks for the help! I currently have my drag and drop for pixel
following the
mouse, and the drag and drop for stroke stopping when the mouse leaves before
resuming when re-entering. Is this inconsistency okay or do they both have to
do the same thing upon exit?

I have attached my .swf in case you need a better idea of my current
functionality, and thanks again!

-Kyle

Main.swf

Michael Bernstein

unread,
Apr 4, 2010, 6:28:27 PM4/4/10
to 68...@googlegroups.com
Kyle, that's probably fine for an assignment, but keep in mind that such behavior would probably be a usability problem in anything you roll out to real people. :)
- Michael
Reply all
Reply to author
Forward
0 new messages