PDA

View Full Version : full screen with border


tinnesda
01-13-2003, 07:22 PM
I am trying to make an application that is full screen but creates a border around the edge of the screen regardless of the screen resolution. I have created a movie clip that serves as the border.
I am using this code.

FRAME 1:
fscommand ("allowscale", "true");
fscommand ("fullscreen", "true");
var ww;
var hh;
fscommand("fas.Shell.GetScreenWH","ww,hh");

FRAME 5:
_level0.border._width = ww;
_level0.border._height = hh;

but it never seems to be lined up around the edge on different resolutions. Any ideas?

linckx
01-13-2003, 07:48 PM
never tried it, but can't you check the resolution of the screen, and according to that go to an mc (or a frame in an mc) with the right border in it?

robin

tinnesda
01-13-2003, 08:11 PM
I suppose but that seems kinda chinsy, I would just like to know why the code I am using does not work like it should. Seems to me like it should work, must be missing something simple I am sure.

linckx
01-13-2003, 08:15 PM
well, I think it's just the fact that you adress the ww and the hh before you give them a value...

and perhaps I should try to note it like this...


hh = _level0.border._height;


but I'm not quite a good scripter myself, so don't shoot me if it wont work :)

robin