# Fullscreen mode not working

**URL:** https://forum.kirupa.com/t/fullscreen-mode-not-working/227157
**Category:** flash
**Created:** [May 27, 2007, 10:58pm UTC](https://forum.kirupa.com/t/fullscreen-mode-not-working/227157 "2007-05-27T22:58:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathew\_er](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mathew\_er](https://forum.kirupa.com/u/mathew_er)
#### Post date: [May 27, 2007, 10:58pm UTC](https://forum.kirupa.com/t/fullscreen-mode-not-working/227157/1 "2007-05-27T22:58:40Z")

</div>

Hello 🙂

I’m not really getting this…

in a flex HTML template I have this

```auto
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    id="${application}" width="${width}" height="${height}"
    codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
    <param name="movie" value="${swf}.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="${bgcolor}" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" /> 
    <param name="wmode" value="transparent">
    <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
        width="${width}" height="${height}" name="${application}" align="middle"
        play="true"
        loop="false"
        quality="high"
        wmode="transparent"
        allowScriptAccess="sameDomain"
        allowFullScreen="true"
        type="application/x-shockwave-flash"
        pluginspage="http://www.adobe.com/go/getflashplayer">
    </embed>
</object>

```

so the allowFullScreen part is there, but I get this runtime error

```auto
SecurityError: Error #2152: Full screen mode is not allowed.
    at flash.display::Stage/set displayState()

```

Code for switching to fullscreen is just ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000FF]stage[/COLOR].[COLOR=#000080]displayState[/COLOR] = StageDisplayState.[COLOR=#000080]FULL\_SCREEN[/COLOR];  
[/LEFT]  
[/FONT]

I tried using all kinds of ways to write the flash HTML, but nothing worked ☹  
I have FP 9.0.45.0

Anybody has an idea? If I won’t solve this in the next hours I’m DEAD :hitman:

Thanks a lot!
