I'm having trouble getting the hang of resizing videos and the stage properly in AS3.
I have set up a netstream
and I'm able to play a video, but whenever I set the height and width I want the embedded object to be on the page in swfobject, the video disappears.
I can still hear the audio, and I can tell the object is the right size, but no video. I have tried setting the stage.stageWidth/stageHeight
properties but they don't see to take my assignment.
Example:
stage.stageWidth = 400;
trace(stage.stageWidth); // equals 500 for some reason
The stage.stageWidth/Height properties also seem to have nothing to do with the area the flash object takes up in the browser (its the full screen). I have also tried setting stage.width/height and I get an error stating the Stage class doesn't implement these properties. I'm pretty perplexed.
stageWidth/stageHeight
are effectively read only. If the scale mode is anything butNO_SCALE
then even after scaling the size will report the original swf size. Show your code (where you play the video) and your swfobject code may be useful too. – BadFeelingAboutThisstage.fullScreenWidth
to get monitor's full width. You can't set the width/height of the stage from within flash, the container needs to do that. – BadFeelingAboutThisstage.scaleMode = StageScaleMode.NO_SCALE
, and then specifying the video object height and width seems to have fixed it. thanks for pointing me in the right direction with scale. – Rob Allsopp