PDA

View Full Version : Control screen resolution from Flash


Rom
12-01-2004, 01:20 PM
A very good trick to control the screen resolution from Flash :

Check out http://romainlaisne.net/forum/viewforum.php?f=5

Billy T
12-01-2004, 01:45 PM
thanks

Billy T
12-01-2004, 01:46 PM
btw is it possible on the mac?

CyanBlue
12-01-2004, 08:22 PM
It'd be nice if I can understand what it is saying... Dang... :(

sho shinjo
12-06-2004, 05:29 PM
It'd be nice if I can understand what it is saying... Dang... :(


tru, tru...
english, english...

Billy T
12-06-2004, 09:34 PM
use google translator

FlashJester
12-16-2004, 06:24 PM
You can also use FlashJester Jugglor v2.1 to change the resolutions

http://www.jugglor.com

Download a FREE evaluation copy and try it for your self.

Setup Settings -> Windows Settings -> Full Screen Resolution

Good Luck

BluegillMedia
02-23-2009, 02:55 PM
Is there a way just to detect the resolution rather than set it? I just need to not play a MC if there resolution is 1280 wide or greater.

northcode
02-23-2009, 03:46 PM
Several years ago I wrote a utility called launcher that detects the screen resolution and allows you to launch different EXE files based on the resolution. The idea was to let designers develop for multiple resolutions and then pick the best projector based on the users screen resolution. This was an alternative to changing the screen resolution.

I first posted it over at FlashKit, and you can follow that discussion here...
http://board.flashkit.com/board/showthread.php?t=545161&highlight=launcher

http://www.northcode.com/misc/launcher.zip
There are instructions inside the ZIP file.

BluegillMedia
02-23-2009, 03:54 PM
I am actually looking for this code for an htm/swf version (not a projector) but this was the closest thread i could find. Do you know if that code (which is in a swf file) will still work out side of a projector?

northcode
02-23-2009, 04:14 PM
There may (or may not) be a property in newer versions of Flash that I'm not aware of that will let you figure out the screen resolution, but you can definitely do it in HTML with JavaScript.


<html>
<body>
<script language="Javascript">
document.write('Your resolution is '+screen.width+'x'+screen.height);
</script>
</body>
</html>
Once you can do that you can wrap it up as a function and call if from Flash using ExternalInterface.

BluegillMedia
02-23-2009, 08:41 PM
Yes, i am aware of the js solution, but i need the flash movie to do something different based on the resolution.

Now, in AS2 I believe you can call JS functions and perhaps have them return a value (say the screen.width). But I likely don't have time to write something that complicated unless it is easier then I think it is (client has low budget).

Is there an easy way to do this, or a way to do it right in flash? Does ExternalInterface work in AS2?

northcode
02-23-2009, 10:24 PM
ExternalInterface was added in Flash 8 so it will work with AS2. There's a complete example (AS2 and AS3) on the Adobe site http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683

BluegillMedia
02-25-2009, 08:34 PM
Thanks!