# getURL Question in Flash: By Patrick S

**URL:** <https://forum.kirupa.com/t/geturl-question-in-flash-by-patrick-s/119163>\
**Category:** Uncategorized\
**Created:** [August 12, 2004, 1:09am UTC](https://forum.kirupa.com/t/geturl-question-in-flash-by-patrick-s/119163 "2004-08-12T01:09:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PatrickS](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@PatrickS](https://forum.kirupa.com/u/PatrickS)\
**Post date:** [August 12, 2004, 1:09am UTC](https://forum.kirupa.com/t/geturl-question-in-flash-by-patrick-s/119163/1 "2004-08-12T01:09:56Z")

</div>

I am trying to make a .swf file load into a separate browser window using this method and I can’t get it to work.

Example:

Uni\_\_Dock\_Video.on (press) {  
getURL(javascript:openNewWindo(‘rollOver02.swf’,‘unipop’,‘height=400,  
width=400,toolbar=no,scrollbars=yes’));  
}

I have a button named, “Uni\_\_Dock\_Video” in a Flash file.

I am assigning this code into a blank keyframe on a separate layer from the before-mentioned button

I have a file named, “rollover02.swf” that plays fine. This code is pointing to that file, “rollover02.swf” and it is in the folder with the rest of my files.

When I hit Ctrl+Enter in the file that has all this code, the .swf file that results works fine except that the new browser window that should show up (when I click on the button, “Uni\_\_Dock\_Video”), playing, “rollover02.swf” doesn’t show up.

Hence, a getURL Question in Flash.

---

<div class="post-metadata">

**Author:** ![MZA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MZA](https://forum.kirupa.com/u/MZA)\
**Post date:** [August 12, 2004, 7:47am UTC](https://forum.kirupa.com/t/geturl-question-in-flash-by-patrick-s/119163/2 "2004-08-12T07:47:04Z")

</div>

if i was u i would put somthing like this on the button as action instead. (Actually i would change test.swf to test.htm and embed test.swf in test.htm.)

```auto
on(press) {
	getURL("javascript:window.open('test.swf','test','height=400,width=400,toolbar=no,scrollbars=yes')");
}

```

I belive this should work, otherwise great tutorials in kirupa site for things like this for example:

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

But if u want to do it your way then u have to add some java into your html file. For more info:

[http://www.tutorialoutpost.com/count/118](http://www.tutorialoutpost.com/count/118)

But use kirupa tutorial style way, thats always the best. ;D

Cheers  
MZA

---

<div class="post-metadata">

**Author:** ![MZA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MZA](https://forum.kirupa.com/u/MZA)\
**Post date:** [August 12, 2004, 7:54am UTC](https://forum.kirupa.com/t/geturl-question-in-flash-by-patrick-s/119163/3 "2004-08-12T07:54:52Z")

</div>

and i have no idea why the forum posts height=4 00 instead of height=400 😃
