A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: environment check

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    14

    environment check

    using flash 8 how can I check the runtime environment 'standalone' or 'browser'.

    rgds
    steve

  2. #2

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    14
    I have it working...I wanted to turn certain functions off and on depending on what environment the player was paying in...as a .EXE player - standalone OR in a web browser.

    so I check for the following

    System.capabilities.playerType

    using the following I check for plugin for browsers and I>E specifically with ActiveX and browser

    runtime=(System.capabilities.playerType);//turn off the exit button if browser based.
    if(runtime=="PlugIn"){
    //do something here
    }
    if(runtime=="ActiveX"){
    //do something there
    }
    Last edited by stevehsure; 08-26-2010 at 04:17 AM.

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