             showNewMedia(url);
             didShowNewMedia();
         }
+    }
+
+    /**
+     * Set the media to display as a ByteArray.
+     */
+    public function setMediaBytes (bytes :ByteArray) :void
+    {
+        if (_media != null) {
+            shutdown(false);
+        }
+        _url = null;
+
+        willShowNewMedia();
+        startedLoading();
+        initLoader().loadBytes(bytes, getContext(null));
+        didShowNewMedia();
     }
 
     /**

import flash.geom.Point;
import flash.geom.Rectangle;

import flash.text.TextField;
import flash.text.TextFieldAutoSize;


import flash.system.Security;
import flash.system.SecurityDomain;

import flash.utils.ByteArray;

import com.threerings.util.Log;
import com.threerings.util.StringUtil;
