Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : Flash Game EXE in Non Resizable Window


pharaohman98
4/10/2004 10:52:25 PM
Hi All.

I have a new issue that I need resolved with my Flash game. When finished the
game will be published as a stand alone EXE file that people will be able to
download and play. The resolution is set to 640x480 but the problem is that I
can manually resize the window once the exe is opened. Under ALL circumstances
I need the window to remain 640x480. Is there a property or code I can use to
maintain this resolution? VB.NET made it nice and easy because the form itself
had a FORMBORDERSTYLE property that could be set to FixedSingle, None, etc...
As always, thanks for your input!

PS. This is NOT a pop window I'm dealing with. Unlike many tutorials I have
seen online I am NOT using javascript, nor am I attempting to open some remote
HTML window. This is my entire flash game .exe that needs to open at 640x480
in a fixed size window right from the start and stay that way.
urami_
4/11/2004 12:11:20 PM

[quoted text, click to view]

Well , you can't really w/o changing the size.
To be able to hide buttons and border you would have to blow it fullscreen.
While fulscreen you can set it up to 'allowScale fasle' to mantain your content at its
100 % size . But that's retty much all you can do with flash itself .


fscommand ("fullscreen", "true");
it will fill the screen and center the content

if you want to maintain the content size to avoid stretching

fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");


However , if user hit ESC key or CTRL F the EXE file will get back to its original
size . To prevent user from doing that you could add one more fscommand

fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
fscommand ("trapallkeys", "true");

take a note tho , if you disable user key actions by "trapallkeys" user left no other
option but CTRL ALT DEL to close it so you will need to provide custom made QUIT button
with
fscommand ("quit");

Or , easy and neat , not just fullscreen but custom shape , no right click , custom
expire date , position on screen and lots more with 3rd party tools
like Jugglor from http://www.FlashJester.com

If you need it urgently , than perhaps I could help you wrap that exe with Jugglor.
If the files is not colossal that is , I could have problem on my tiny cable download 1GB exe :)

--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

FlashJester Support Team
4/12/2004 2:07:42 PM
Use the Screen Resolution - Direct X - option in Jugglor v2.

Jugglor v2 -> Setup Settings -> Windows Settings -> Full Screen
Resolution -> 640x480

To see an example of this see the Jugglor v2 Gallery and the Scooter Death
Game

http://www.flashjester.com/?section=tricks_jugglor2_gallery

and see it in action.

Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http:///www.flashjester.com

"Knowledge is the foundation of all creation, without knowledge creation
does not exist"


pharaohman98
4/12/2004 3:31:48 PM
Really? Well that bites. I already included fscommands earlier in the program
to correct any content errors, but my initial problem still poses a threat.
Maybe I could find a way to programatically maintain the proportions of the
window if the user resizes one of the dimensions manually. It's still less
than what I'd like, but if no one else can find a way out of my initial
question, then I guess I'll have to take another road. Thanks for the input.
AddThis Social Bookmark Button