How to disable resizing of flash scene in flash desktop player

flash

I am using Flash CS5 and when I exprt my file to swf I notied that after exporting and playing it in Flash player (on my desktop) I can change the size of the window and the scene itself eventthough I have set the width and height dimension to e.g. 468×60.

So, the bad thing is that if I ahve some objects that are moving from this area and in banner I do not see them in flash player I can see all which is not good.

Is there a setting in export option to disable this behavior or some actionscript, so my client will not be able see the "mess-behind-the-scenes" :)?

I can probably remove some objects using actionscript, however if I have looping background image it is necessary to be bigger than 468px In my case 3x.

Thanks in advance for any advice.

Best Answer

standalone flashplayer will be resizable because it's a windowed app.
however, you can apply a 468x60 mask to your root DisplayObject

upd:

var maskMC:MovieClip = _root.createEmptyMovieClip("mask", _root.getNextHighestDepth());
maskMC.beginFill(0x000000, 100);
maskMC.moveTo(0, 0);
maskMC.lineTo(0, 60);
maskMC.lineTo(468, 60);
maskMC.lineTo(468, 0);
maskMC.lineTo(0, 0);
_root.setMask(maskMC);
Related Topic