UnityWorks! Media Wiki

Page History: XSPFPlayer v3.0 - ActionScript Integration

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2009/05/07 16:57


   XSPF Player 3.0 ActionScript 3 Integration –













   XSPF Player 3.0 ActionScript 2 Integration –

The XSPFPlayer can be imported through AS2 into another AS2 environment. The example below will import the player into your main stage of the application. The CTX and VID values will be delivered by UWM.

_root.ctx = "###"; //values delievered by UWM
_root.vid = "###"; //values delievered by UWM

_root.NVP = true; //value required by UWM
_root.addOnComponent = true; //value required by UWM

this.createEmptyMovieClip("xspfPlayer", 100); //creating placeHolder
this["xspfPlayer"].loadMovie("../xspfPlayer.swf"); //importing XSPFPlayer to placeholder

_root.playerWidth = ###;  //designate the width of the player
_root.playerHeight = ###;  //designate the height of the player
this["xspfPlayer"]._x = ###;  //designate the X location of the player
this["xspfPlayer"]._y = ###;  //designate the Y location of the player

The code above can be altered to fit within your project scenerio.





   XSPF Player 3.0 ActionScript 2 Component Integration –

The XSPFPlayer is also available as a Flash 9+ Component (AS2) for those who decide to incorporate the player within a seperate Adobe Flash application. The following instructions will show you the process.

Download the XSPFPlayer v3.0 AS2 Component.

UWM_XSPFPlayer_v3_Component.rar (Flash Component Download) - Coming Soon.


  • To install the UWM XSPFPlayer Component - Launch the packaged .mxp extension.
  • Adobe Extension Manager will launch and install the mxp file.
  • Restart Adobe Flash - The program will add your new component.
  • Open your "Component Window" (Ctrl + F7).
  • Expand the UWM XSPFPlayer component folder.
  • Drag the UWM XSPFPlayer component on to your stage.
  • The UWM XSPFPlayer will appear on your stage together with the necessary items inside your movie library.
  • Single click the UWM XSPFPlayer component currently on the stage.
  • Open your "Parameters Window". (Ctrl + F3 - Parameters)
  • Set your parameters with the values delivered by UWM.
  • Publish your movie. (Ctrl + Enter)

Component Inspector Parameters -

The following parameters are available to the component via the parameter window of the UWM XSPFPlayer Component. This table will give you an idea of the possible actions and set up values the XSPFPlayer component needs.

Parameter Values Description
CTX ID ## (String) Required - Team Identifier Value will be provided by UWM
VID ID ## (Num) Required - Video Identifier Value will be provided by UWM
Player Width ### (Num) Video Width
Player Height ### (Num) Video Height
AutoStart true,false (Boolean) Video auto play
IsMuted true,false (Boolean) Mutes video playlist
exeFunction URL (String) URL will launch once video is complete
exeTarget _blank,_parent,_self (String) Targets exeFunction URL
host URL (string) DO NOT CHANGE

2008 UnityWorks! Media