Search code examples
flashactionscript-3fullscreenflashvars

Detecting if fullscreen is allowed in ActionScript 3.0?


I would like to remove a fullscreen button if the allowfullscreen param is false.
      param value="true" name="allowfullscreen"

Does anyone know if its possible to detect that value? It doesn't come with other flashvars on loaderInfo.parameters.


Solution

  • EDIT: This is obsolete now (was a hack for FP 8.5 / 9)

    The following will detect if your player has fullscreen availability (thx @mrdoob) :

    var hasFullscreen:Boolean = (stage.hasOwnProperty("displayState"))