views:

20

answers:

0

I am using below code to change the size of the VideoPlayer, but in my result the control didn't change, just the video inside the control is changed. And it's weird that the video can be changed to be larger but can't be smaller. My aim is to change the size of the control, and the video will also be sized according to the size of the control.

        protected function button2_clickHandler(event:MouseEvent):void
        {
            svid.width = 1000;
            svid.height = 1000;             
        }
<s:VideoPlayer id="svid" source="http://127.0.0.1:8000/jacko.flv" bottom="77" left="9" top="0" right="10" ready="onFLVReady();"/>