I have a flex swf that has the dimensions for the width and height set to 100%.
When you expand the flex application in a browser window the flex swf expands so that you can see more products.
I am loading this flex swf into a flash swf. I want the flex swf to expand with the page. I have tried using this technique in Flash to get the flex swf to expand (see below, i changed the names to work on my flex swf) it expands the container that i am loading the flex swf into but it does not expand the flex swf. Plus i am not trying to expand the scale i just want the flex swf to be able to show more products if there is room:
var swfStage:Stage = videoScreen.stage;
swfStage.scaleMode = StageScaleMode.NO_SCALE;
swfStage.align = StageAlign.TOP_LEFT;
var swfWidth:int = swfStage.stageWidth;
var swfHeight:int = swfStage.stageHeight;
// Resize the video window. var newVideoHeight:Number = swfHeight - controlBar.height; videoScreen.height = newVideoHeight; videoScreen.scaleX = videoScreen.scaleY; // Reposition the control bar. controlBar.y = newVideoHeight;
Can this be done and if so how? Thank you in advance for any help given.