4. ActionScript API

The ActionScript Integration is a more advanced method of integrating DNA directly into flash players to enable progressive video downloads.

The ActionScript Integration performs all the same functions as the JavaScript Integration, namely, detecting if DNA is installed on end users’ computers, and if so reforming URLs to use the DNA client in order to download content.  There is no need to use both ActionScript and JavaScript integration methods together.  The advantage of using the ActionScript Integration is that no modification is required to webpage HTML; all integration change is contained within the SWF flash video player.  Limiting integration modification to a single component is advantageous for websites with a large number of pages that all make use of the same flash player.

The ActionScript Integration involves two steps:

  1. Including the DNA ActionScript Libraries and importing the BTNetStream class into the top of your flash video player ActionScript file
  2. Replacing the NetStream() function call with the BTNetStream() function call.

For a more detailed description of the ActionScript integration method, along with sample code and API documentation see: Streaming Service to a Web Browser – ActionScript