|
-
Qwaizang:syntax_entity_
Experts: Detecting Player Version, System abilities
Hi everybody,
I'm not entirely positive how I should go about this. I want to script a project so that the version of the player is detected, after which the application conditionally halts if the version number is not compliant or continues if the version number is compliant.
I'm a little stumped about how to achieve this because it would require scripting the startup of the project in a previous version using legacy code, then superceding that initial document with a current version document. Does anyone have any pointers on accomplishing this?
It would also help if I could detect performance specifics of the local machine, like display mode (bit depth, etc. of screen). Obviously, things that go beyond what System.capabilities[...] can give me.
Thanks,
+Q__
Qwai•zang \kwî-'zan\ n [origin unknown] 1 : abstract designer, esp. of complex real-time experiments, c. 21st century
-
FK'n_dog
find the version info with -
Code:
function VersionInfo()
{
total = _root.$version;
os = total.substr(0,4);
playerSerial = total.substr(4,1);
playerVersion = total.substr(8,2);
trace("total: "+total);
trace("os: "+os);
trace("playerSerial: "+playerSerial);
trace("playerVersion: "+playerVersion);
}
VersionInfo();
find the system capabilities with -
Code:
for (var p in System.capabilities){
profile_txt.text += p + " : " + System.capabilities[p] + "\n";
}
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
|