Video's been broken for a little while, but I had removed all my video

objects so was not seeing NPEs that others were.
Fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4581 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-02-15 00:54:59 +00:00
parent 2376e86f3f
commit bca51291ae
@@ -25,6 +25,9 @@ import flash.geom.Point;
import flash.media.Video;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
import flash.system.SecurityDomain;
@@ -121,6 +124,15 @@ public class MediaContainer extends Sprite
*/
protected function setupVideo (url :String) :void
{
// TODO: re-implement video without flex
var tf :TextField = new TextField();
tf.autoSize = TextFieldAutoSize.LEFT;
tf.text = "Video is temporarily disabled";
tf.background = true;
tf.selectable = false;
tf.width = tf.textWidth + 5;
setMediaObject(tf);
// var vid :VideoDisplay = new VideoDisplay();
// vid.autoPlay = false;
// _media = vid;