| Back to previous page | ||||
|
Flash Player 9 (ActionScript 3) or greater required to view the above animation. Compressed with codec VP6, 6 MB. The player is from custom code. The rest is test-classes, from custom code. Press the "Trace displaylist" button to print the Flash/ActionScript 3.0 Display-list. The three GUI-elements (Play/Pause-button, Home-button, Seek-bar) communicate with an Observer implementation (see the book "Head First: Design Patterns"). A way to test this implementation was to make classes to remove and add Observers from the Observers-array. From the drop-down list you can choose an Observer, and Add or Remove it with the buttons. To check that an observer is removed, press the "Trace observers"-button before and after removal. For the player to work correctly, both PlayPauseButton and SeekBar should be Observers. For instance - if you remove the PlayPauseButton, the PlayPauseButton does not change its icon once the playhead reaches the end of the film. | ||||