-
Japanese l337
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
-
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.
-
Japanese l337
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|