# How to disable publish previews

**URL:** <https://forum.kirupa.com/t/how-to-disable-publish-previews/257238>\
**Category:** flash\
**Created:** [April 11, 2008, 3:49pm UTC](https://forum.kirupa.com/t/how-to-disable-publish-previews/257238 "2008-04-11T15:49:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevisazombie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevisazombie/32/3903_2.png) [@kevisazombie](https://forum.kirupa.com/u/kevisazombie)\
**Post date:** [April 11, 2008, 3:49pm UTC](https://forum.kirupa.com/t/how-to-disable-publish-previews/257238/1 "2008-04-11T15:49:09Z")

</div>

Hi all I am publishing a swf that has several getURL(“javascript:alert”) calls in it. When publishing it in flash it makes a preview swf that opens up a browser and attempts to call all the javascript alerts in separate tabs and then crashes Flash.

The swf does get published and works fine when embedded in the browser but I hate having to restart flash every time I publish while trouble shooting. I haven’t found any info on actually disabling the publish preview feature you can change it to html and other formats.

I can’t use trace(); or switch it to an html preview as the .swf uses data passed from mysql to php to xml so I would have no variables to look at in the preview
