Notes: AIR

Tuesday, April 7th, 2009 | Web Development | No Comments
Some notes I’ve gathered over time in regards to AIR. As per usual, just posted up here for future reference.

Multiple Monitors

When building an app for multiple monitors, be sure to make use of the flash.display.Screen class. This class lets you iterate through all of the monitors available with access to the size and resolution of each. It also can tell you which is the primary monitor. Below is a useful function to grab the current screen.

	private function getCurrentScreen():Screen {
		return Screen.getScreensForRectangle(stage.nativeWindow.bounds)[0];

› Continue reading

Tags: ,