# Problem with popup as3

**URL:** <https://forum.kirupa.com/t/problem-with-popup-as3/317152>\
**Category:** flash\
**Created:** [December 12, 2010, 6:40am UTC](https://forum.kirupa.com/t/problem-with-popup-as3/317152 "2010-12-12T06:40:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leeda111](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@leeda111](https://forum.kirupa.com/u/leeda111)\
**Post date:** [December 12, 2010, 6:40am UTC](https://forum.kirupa.com/t/problem-with-popup-as3/317152/1 "2010-12-12T06:40:30Z")

</div>

Hi,

I am having some problem dealing with creating pop up. I want to mention here that I am trying to add pop to a button in FLASH or PROJECTOR(Not HTML)

My default browser is Google chrome and the home page is set to [google.com](http://google.com)

Now I tried this code:

```auto
var jscommand:String = "window.open('http://www.adobe.com','win','height=200,width=300,toolbar=no,scrollbars=yes');"; 
var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);"); navigateToURL(url, "_self");

```

And instead of acting like a popup it just opens a new chrome window with all the toolbars and [google.com](http://google.com) as the page.  
But I i publish the swf in html the code works fine and it opens a popup with [adobe.com](http://adobe.com) as the page.

But is it possible to do it from projector or flash or I am just wasting my time. Any help will be really appreciated.

Thanks
