all groups > macromedia flash sitedesign > august 2003 >
You're in the

macromedia flash sitedesign

group:

pop up window problem over here


pop up window problem over here FreddyKiss
8/31/2003 3:11:18 PM
macromedia flash sitedesign:
Greetings:
I attached this code to a button, hoping for a simple pop up window:
on (release) {
getURL("javascript:window.open('http://www.yahoo.com','YAHOO','height=400,width=500,toolbar=no,scrollbars=no')",_self);
}
the problems are:a) two windows pop up - one is the correct one, the other is an empty page with the code for a title:b) the 'yahoo' name doesn't work: c) it pops up at the back, while I was hoping it would pop up at the front.
another thing: I want lots of buttons to reffer to lots of pop up URLs, but only in one pop up window: that is: when I press button (2), which should reffer to "www.food.com", pop up window number 1, which popped up when I pressed button (1), should now host food.com, ditching it's previous URL: and: when doing so, I want the window to resize (to fit the new URL).

please help.
cheers



Re: pop up window problem over here MenS
8/31/2003 7:28:15 PM
I have no direct answer, but i think you better try a javascript- or
html-forum/newsgroup. Your problem is not in Flash... But then again i'm not
a specialist...

Good luck

Re: pop up window problem over here Willem van Isselmuden
8/31/2003 10:51:50 PM
This works better....

on (release) {
getURL
("javascript:NewWindow=window.open('http://www.yahoo.com','newWin','width=40
0,height=500,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,res
izable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

Hope it helps

GreetingsWillem




"FreddyKiss" <webforumsuser@macromedia.com> schreef in bericht
news:bit36l$n3t$1@forums.macromedia.com...
[quoted text, click to view]
getURL("javascript:window.open('http://www.yahoo.com','YAHOO','height=400,wi
dth=500,toolbar=no,scrollbars=no')",_self);
[quoted text, click to view]
is an empty page with the code for a title:b) the 'yahoo' name doesn't work:
c) it pops up at the back, while I was hoping it would pop up at the front.
[quoted text, click to view]
but only in one pop up window: that is: when I press button (2), which
should reffer to "www.food.com", pop up window number 1, which popped up
when I pressed button (1), should now host food.com, ditching it's previous
URL: and: when doing so, I want the window to resize (to fit the new URL).
[quoted text, click to view]

Re: pop up window problem over here anishu
9/1/2003 7:51:25 AM
i think u hav to add javascript to ur html page where ur putting swf file

<-------------->

<script language = "javascript">
<!--
function popupmenu(choice,wt,ht)
{
var winOpts="toolbars=no,maximize=no,resize=no,width="+wt+",height="+ht+",location=no,directories=no";
confirmWin=window.open(choice,'theconfirmWin',winOpts);
}
//-->
</script>

and add this script on ur flash file button

<-------------->

javascript:popupmenu('http://www.yahoo.com','400','500')

try this

anish

Re: pop up window problem over here Txarán
9/1/2003 1:19:04 PM
you can find a very easy to use pop-up freeware component at http://home.swfla.rr.com/centerpopup/


the blue of the sea is sometimes so blue that only blood is more red..
AddThis Social Bookmark Button