|
Flash Player 9 (ActionScript 3) or greater required to view the above animation. Compressed with codec VP6, 16 MB. The player is from custom code. | ||||
|
As a side-project I have programmed a custom Flash-player in ActionScript 3.0. Both graphics and the functionality is
from custom code, using only the Flash ActionScript 3.0 API. One of the reasons for doing this project was to learn some ActionScript. The film above is controlled by the player, and for the moment, the player consists of a Play/Pause-button, a Home-button and a Seek-bar. The Seek-bar shows how far the download of the video-file has progressed, it shows how far into the video we are viewing and by dragging the play-head you can search within the video. The player is easily customizable with respect to appearance. Colors, thickness of lines, length etc can be modified just by altering parameters. The button-icons may be changed by doing small code modifications. The player should also be easily modifiable when it comes to functionality. The three elements (the Play/Pause-button, the Home-button and the Seek-bar) are designed to be as independent as possible (de-coupled). There must be some communication between the elements - the Play/Pause-button needs to know when the play-head reaches the end of the video, and the Seek-bar needs to know when the Play/Pause-button is clicked. This communication is set up with an Observer-implementation (documented in the book "Head First: Design Patterns"). For comparison, this is the standard Flash-player. Mine is better, right?? Hopefully my player will get some sound soon. In order to test the player, specifically to see what is going on on the server, I made som test-classes: Custom flash player testing. | ||||