1. Home
  2. Computing & Technology
  3. Animation

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

By , About.com Guide

1 of 4

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.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. ActionScripting Basics
  6. ActionScripting Basics: Using System.capabilities to Determine a User's Screen Size

©2009 About.com, a part of The New York Times Company.

All rights reserved.