# Flash CS3 + JavaScript popup window help

**URL:** <https://forum.kirupa.com/t/flash-cs3-javascript-popup-window-help/289712>\
**Category:** flash\
**Created:** [June 3, 2009, 7:18pm UTC](https://forum.kirupa.com/t/flash-cs3-javascript-popup-window-help/289712 "2009-06-03T19:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NapoLoso](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@NapoLoso](https://forum.kirupa.com/u/NapoLoso)\
**Post date:** [June 3, 2009, 7:18pm UTC](https://forum.kirupa.com/t/flash-cs3-javascript-popup-window-help/289712/1 "2009-06-03T19:18:23Z")

</div>

Hello everyone,

I would really like some help. I’m stuck.

What I’m trying to do is for flash to open up a pop-up window using JavaScript.

following the video tutorial on this page, this is what i’m doing.

I created a button with an instance-name: mapa-btn and the script  
i’m using is:

[[COLOR=#0000ff][/COLOR]](http://www.gotoandlearnforum.com/viewtopic.php?f=5&t=25326#)

```auto
 mapa_btn.onRelease = function(){
   getURL("javascript:launch('http://www.agenciabs.com/mapa.html')");
}

```

Now, on the HTML page where I’m embedding this main swf file where i have this button,  
I’m adding the following javascript:

```auto
 <script language="JavaScript">

function launch(page){
openwin = this.open(page,"Agencia ABS", "toolar=no,menubar=no,scrollbars=no,location=no,width=550,
height=250,top=250,left=250");
}
</script>

```

Please help me if Im doing something wrong or if there is a better way to open up  
a pop-up window with no menu bar, no scrolls etc…from flash

Thanks so much in advanced for all the help

-Napo
