1. Computing & Technology

Discuss in my forum

Using System.capabilities to Determine a User's Screen Size

By , About.com Guide

For this lesson we're going to use Flash's System.capabilities to determine the user's screen resolution. Because information gathered by System.capabilities doesn't actually do anything unless we use it as part of some function, we're then going to use dynamic text properties to display the screen resolution in an SWF.

To start off, create a dynamic text field on the stage and assign an instance name to it so that after the user's resolution has been captured, we can send it to the text field. I've named mine resdisplay.

©2012 About.com. All rights reserved.

A part of The New York Times Company.