Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Building the Commands > The Remove Selection Command

The Remove Selection Command

Class

RemoveSelectionCommand.as

Responsibilities

When the user closes a section of the Timeline (such as clicking a “Chapter” button when the Timeline is already displaying its Scenes), then it and the sections below it in the hierarchy must be removed from the SelectionContext. For instance, when a selected Chapter is clicked to deselect it, the Story or Part containing it should be selected, causing the Chapter and its Scenes to be deselected by the logic inside the corresponding selection method on the SelectionContext.

  • Extend SimpleCommand

  • Get the AppEvent from the Notification body

  • Retrieve the SelectionContext from its transient Proxy


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial