# navigateToURL causes Adobe Flash Player Security

**URL:** <https://forum.kirupa.com/t/navigatetourl-causes-adobe-flash-player-security/287398>\
**Category:** flash\
**Created:** [April 30, 2009, 2:42pm UTC](https://forum.kirupa.com/t/navigatetourl-causes-adobe-flash-player-security/287398 "2009-04-30T14:42:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThaJock](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Post date:** [April 30, 2009, 2:42pm UTC](https://forum.kirupa.com/t/navigatetourl-causes-adobe-flash-player-security/287398/1 "2009-04-30T14:42:43Z")

</div>

This Adobe Flash Player Security box is really getting in my way.

I have a button that acts as a lind to a web page  
It has this bit of code programmed to it:

button.addEventListener(MouseEvent.CLICK,buttonClick);  
function buttonClick(event:MouseEvent):void {  
var req:URLRequest = new URLRequest('http://…");  
navigateToURL(req);  
}

Can anyone tell me if calling navigateToURL() causes this security box to appear every time if you havent trusted this .swf in your flash settings?

I have looked at a way to handle the “link” with javaScript but before I get too deep into something I’m not too familiar with I wanted to see if there was a way to here within flash while avoiding the flash security box.
