wiki:FRAME_LINK_TRIGGERING_R0
Last modified 16 years ago Last modified on 03/11/09 06:25:20

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=FRAME_LINK_TRIGGERING_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

This task is about how users will trigger links while in test mode.

While in author mode, the user can select a frame and get the link halo for frames. They will be able add actions to the frame and then put Sophie into test mode.

Once in test mode, the mouse and keyboard actions can effect how links are triggered. When passing a mouse over the frame, any mouseEnter actions would be triggered. When the mouse leaves the frame, mouseLeave actions would triggered.

When the user clicks the frame, any mouseDown/mouseUp/mouseClicked actions should be triggered.

The R3 event system should handle the proper hierarchy of event handling for frames. If not, that will be to be fixed. What I mean by this is that, for example, if the user has a text frame, and some text in the frame has a link and the frame itself has a link, if the user clicks the text link, only the text link should trigger. If the user clicks any text that is not linked, the click should be sent up the object hierarchy to the frame, which would then handle the click and trigger any actions on the frame.

Task requirements

  • Add event handling to frames for: (if neeeded)
    • mouseEnter
    • mouseLeave
    • mouseDown
    • mouseUp
    • mouseClicked
  • Dispatch actions based on events sent to the frame
  • Make sure R3 Event system sends the proper events to the frame (it should be)

Task result

The result of this task is code

Implementation idea

There should be no if-then statements. The dispatch of the actions should be transparent and shared among all objects, whether they are frames, or text, or a portion of a movie or image. You should just make sure that the proper event sends the right event id to whatever module is executing events.

Write as little code as possible. Most of this code should be shared amonst all objects that can trigger actions.

How to demo

Attach an action to a frame, change into test mode and then execute the link by clicking on the frame

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)