1
votes

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. 468x60.

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.

3

3 Answers

2
votes

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);
1
votes

You didn't say what AS version.

In AS2, add to first frame Stage.scaleMode = "noscale";

In AS3 StageScaleMode.NO_SCALE

edit // And, you can set a main mask layer

0
votes

Came here from a google search and needed an AS3 version of www0z0k's answer. In case anyone else is in the same boat, here is what I ended up doing:

var square:Sprite = new Sprite();
addChild(square);
square.graphics.beginFill(0x000000);
square.graphics.drawRect(0, 0, this.width, this.height);
square.graphics.endFill();
square.x = 0;
square.y = 0;
this.mask = square;