Please note: This chapter assumes familiarity with the Flash authoring environment, and that a USM encoded video file has already been created. This chapter will take you step by step through the process of adding video to a SWF via ActionScript. This chapter is meant to be introductory, and as such does not include implementation details on adding video controls such as play, pause, rewind, video size adjustments, etc. For further details on how this is done, please consult the Flash help files for the NetStream class.
The first step to adding video is to encode a USM with the Scaleform Encoder. Please refer to Getting Started: Encoding Scaleform Videos for details on this procedure. Follow the steps in this section to add an encoded USM video file to a SWF file, and play the SWF and video in Scaleform Player.