Skip to main content
Inspiring
July 27, 2009
Question

change my swf size on button click

  • July 27, 2009
  • 1 reply
  • 762 views

Hi,

How can i resize my stage or embedded swf by a button click event?

My Code is not working and my stage is not resizing.

Pls help me.

var mcStage:Stage; 
mcStage.scaleMode = StageScaleMode.EXACT_FIT;
mcStage.align = StageAlign.TOP_LEFT;
mcStage.stageWidth= 980;

mcStage.stageHeight = 690;

Thanks.

This topic has been closed for replies.

1 reply

July 27, 2009

Hi,

I don't think you can change the flash application dimension dynamically.

Only the way is you have to use Javascript to change the flash object dimension if your application runs in a html page.

- Varun

Inspiring
July 27, 2009

hi,

but whats the difference by setting your swf on full screen.

thats what im trying to do, but i have a fixed size instead of full screen. it's like just zooming the swf.

thanks.

Inspiring
July 27, 2009

its like for example, i have a small swf embedded on my page with 980 x 350 px. and when i click on the flash,  it will resize into 980 x 690px taking over a certain part of the window? is that possible?

im really quiet confuse... Thanks a lot.