Skip to main content
August 8, 2008
Question

pop-window in new browser

  • August 8, 2008
  • 2 replies
  • 361 views
i'm trying to create a pop-up window in a new browser using flash.

i'm following a set of instructions found at http://www.cbtcafe.com/flash/popupwindows/popupwindows.html. the only difference is that i don't have dreamweaver so i can't edit the HTML code in dreamweaver as instructed. i only have textedit so i do the following: i open the published .html file in firefox browser, get source code, copy and paste to text edit, edit the code in textedit than save as a .html file. my .swf file publises w/out any errors and everything else seems fine but when i load files onto the web and test out the button to open pop-up in new brower, nothing happens.
any ideas or advice?
thanks!
This topic has been closed for replies.

2 replies

August 8, 2008
ffor,

Glad to help. Unfortunately, I was not able to figure out how to control the size of the window. I'm sure it is not difficult, and hopefully someone else will answer and let us both know. It seems you should be able to use the info in the link you had in your original post, but I tried that and could not get it to work. Sorry I could not be of more help.

Bob
August 8, 2008
no worries and thanks for your help Bob!
August 9, 2008
I've used the example at http://www.kirupa.com/developer/mx/centered_popup.htm before (while modifying the code to my liking), but this will allow you to do what you want without placing a function inside the html file.

Otherwise, try the code I suggested on this post http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=288&threadid=1384160 and retry editing the html file. Make sure you upload the edited html file and the swf file, and make sure the code goes within the <body> area of the html document.
August 8, 2008
ffor,

Hi. I've done this many times and it is pretty easy. I just assign the following to a transparent button which is on top of the area you want to be able to click:

on (release) {getURL(" http://www.somesite.com","_blank");}

This will open a browser window and display the page www.somesite.com

Hope this helps.

Bob
August 8, 2008
that worked beautifully.
thanks Bob.
now, can i control the size of the pop-up browser window that opens?
what do i add in the code for that?
thanks!