Page 1 of 1

Flash Size

PostPosted: Mon Nov 22, 2010 4:08 pm
by Fox Paradox
I'm tiring to play a flash game but when the window comes up the game is bigger than the window, so I don't have access to all the buttons. If I switch to full-screen mode I still have the same problem. My screen resoluteness is at max, so is it possible to adjust the game's screen size? I tried scrolling the mouse wheel and pressing crtl -/+ and that didn't do anything.

Since a lot peeps here are working with flash I figure somebody can help me out. ;)

Re: Flash Size

PostPosted: Mon Nov 22, 2010 5:00 pm
by Renara
Hmm, it's possible an alternate Flash player may give you more options, but otherwise flash files typically specify a minimum size that the official flash player at least will always try to respect.

You might try creating a basic web-page to see if you can force the Flash's size through that, open up notepad and paste the following into it:
Code: Select All Code
<html>
<body>
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
</body>
</html>


Replace "somefilename.swf" with the URL to the flash file you're trying to display, and change the width and height settings accordingly. Then save the file somewhere you can find it, and make sure the extension is .html, it should then be possible to open it in a web-browser at the size you've specified. This would be the hacky way to go about it though, finding a flash player that lets you do what you need maybe be better in the long-run.

As a side-note, we're hoping to support pretty much any screen-size, as the fixed widths have always annoyed the hell out of me.

Re: Flash Size

PostPosted: Mon Nov 22, 2010 5:51 pm
by Fox Paradox
Thank you for the quick response!

But how do I make the extension an .html? :cry:

Re: Flash Size

PostPosted: Mon Nov 22, 2010 9:13 pm
by Renara
Ehm, depends on your OS, but if you're on Windows then when saving from Notepad there should be a place to enter the filename, below this is a drop-down menu that will contain text document (.txt), and All Files, select All Files then for the name just enter "Filename.html".

Re: Flash Size

PostPosted: Tue Nov 23, 2010 12:55 am
by Fox Paradox
Negatory. I think the problem is that the file is a flash application rather than a swf.

Re: Flash Size

PostPosted: Fri Dec 10, 2010 9:29 am
by jenniferhoops
Hey friend thanks for the tutorial. Your coding really works.