mdm.Video() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Video Class Summary

Availability
Windows, Mac OSX, Linux

Constructor
mdm.Video(x:String, y:String, width:String, height:String, file:String):void

Parameters
x:String: this could be either absolute integer value for video object x location - or one of string constants: L, C, R for relative positioning
y:String: this could be either absolute integer value for video object y location - or one of string constants: T, C, B for relative positioning
width:String: this could be either absolute integer value for video object width in pixels or percentage value string (e.g. 50%) for relative sizing
height:String: this could be either absolute integer value for video object height in pixels or relative value in percentage, e.g. 50%
file:String - Initial media file to load as path to local file

Returns
Nothing

Description
creates Video Player instance using the specified parameters. Multiple instances can be created.

Notes
This object takes some amount of memory. Please make sure that you are closing this object to release system resources when no longer needed and that you control how this objects are created to control number of instances created during application lifecycle.

The Video Class is not available when Direct Wmode (Stage Video) is Enabled.

Example Code
myPlayer = new mdm.Video(new String(0), new String(0), new String(320), new String(240), path);
// or
myPlayer = new mdm.Video("L", "T", "100%", 100%", path);

mdm.Video Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page