A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: System.cababilities class scripting

  1. #1
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399

    System.cababilities class scripting

    Anyone have any luck with these classes ? If so, maybe you could give me a few pointers on the below coding, i also left what I got in the output window, all this example is trying to do, is output whoever's dpi system info into a dynamic textfield in the swf. Any suggestions would be great from anyones thats experimented or dealt with this class.

    PHP Code:
    currentSystem System.capabilities.screenDPI();
    currentSystem dpiText.text
    Output:

    **Error** Symbol=dpi, layer=Layer 1, frame=1:Line 1: A function call on a non-function was attempted.
    currentSystem = System.capabilities.screenDPI();

    Total ActionScript Errors: 1 Reported Errors: 1
    consultant / contractor / designer

  2. #2
    ActionScript Insomniac
    Join Date
    Jan 2003
    Location
    43d03.21'N, 89d23.65'W
    Posts
    1,173
    code:

    currentSystem = System.capabilities.screenDPI;
    dpiText.text = currentSystem;



    1. screenDPI is a property, not a method.
    2. your assignment statement was backwards. The value on the right gets assigned to the variable on the left.

  3. #3
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    OMG, thank you soo much ! That solved it, yeah I guess i just had it backwards lol, minus a detail or two.
    consultant / contractor / designer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center