         var flvPlayer:VideoPlayer = new VideoPlayer();
         mx_internal::videoPlayer = flvPlayer;
         
-        flvPlayer.align = VideoAlign.CENTER;
-        // unfortunately, there's a bug in the video player that 
-        // won't easily let align center if we set x and y directly 
-        // on the video player.  So to work-around this, we always 
-        // create a transform and set x/y that way
-        allocateLayoutFeatures();
+        // we wrap the VideoPlayer inside of another container because 
+        // the video player doesn't handle setting x/y correctly. we could allocate
+        // layout features and subclass it so that layoutX always sets registrationX on the
+        // videoPlayer, but this seemed more straight forward
+        videoPlayerContainer = new Sprite();
+        videoPlayerContainer.addChild(flvPlayer);
                
         flvPlayer.addEventListener(fl.video.VideoEvent.CLOSE, videoPlayer_closeHandler);
         flvPlayer.addEventListener(fl.video.VideoEvent.COMPLETE, videoPlayer_completeHandler);
         flvPlayer.addEventListener(fl.video.MetadataEvent.METADATA_RECEIVED, videoPlayer_metaDataReceivedHandler);
         flvPlayer.addEventListener(fl.video.VideoEvent.PLAYHEAD_UPDATE, videoPlayer_playHeadUpdateHandler);
         flvPlayer.addEventListener(ProgressEvent.PROGRESS, dispatchEvent);
+        flvPlayer.addEventListener(fl.video.VideoEvent.READY, videoPlayer_readyHandler);
         flvPlayer.addEventListener(fl.video.VideoEvent.STATE_CHANGE, videoPlayer_stateChangeHandler);
     }
     

            }
            else
            {
                sourceString = String(this.source);
                sourceLastPlayed = sourceString;
            }

            }
            else
            {
                if (sourceLastPlayed != null)
                {
                    videoPlayer.close();
                    videoPlayer.clear();
                }
                
                flvSource =  new DynamicStreamItem();
                sourceLastPlayed = source;
        
