A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Experts: Detecting Player Version, System abilities

  1. #1
    Qwaizang:syntax_entity_ Q__Hybrid's Avatar
    Join Date
    Aug 2005
    Posts
    270

    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

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center