all groups > flash actionscript > july 2005 >
You're in the

flash actionscript

group:

Opening Independent Window in Flash


Opening Independent Window in Flash queensryche_05
7/14/2005 7:54:45 PM
flash actionscript:
I have the following actionscript as a link within a flash component:

on (release) {
getURL
("javascript:n_name=window.open('pagename.html','width=700,height=500');void(0);
");
}

Someone clicks on that button and pagename.html will appear within a sized
window just as I want. The trouble begins when I have more than one of these
links on the page. Say for example I have the following, also on the same page:

on (release) {
getURL
("javascript:n_name=window.open('pagename2.html','width=700,height=550');void(0)
;");
}

If pagename.html is still open, pagename2.html will open in the same window,
rather than opening in a separate independent window. What am I doing wrong?

Your help is extremely appreciated -

Sincerely,
Kevin





Re: Opening Independent Window in Flash John Doe
7/14/2005 11:21:59 PM
try assigning different names for each window you're opening


[quoted text, click to view]
Re: Opening Independent Window in Flash queensryche_05
7/15/2005 12:00:00 AM
That works great! One final question - is there a way I can center these windows on the parent window, rather than appearing off to the side of the screen?

Many thanks -
queensryche_05

AddThis Social Bookmark Button