00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

opening new windows with java

1,110 Views | 2 Replies
New Topic Respond to this Topic

opening new windows with java 2001-03-26 01:54:25


I'm trying to open a new window in from my flash document without any toolbars or menubars, like the windows that pop up for each flash movie on the sight. could someone show how the proper code should look under the geturl action...when I do it the window never comes out the right size and the current window changes to a blank page.

Response to opening new windows with java 2001-03-26 06:33:57


i had this problem too mate, here is what ya need to do...

on (release) {
getURL ("javascript:openNewWindow('http://www.yoursite.com,'title of ya window','height=400,width=600,toolbar=no,scrollbars=no')
");
}

this was in flash 5 by the way, and feel free to change the numerical values for the height, and width.

then, in you HTML page, you need to view the HTML sorce and edit it, you can do this in note pad. in between the tags called <HEAD> you need to add this code, just copy and paste it.

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

and then it should work, :)

Please Note: this will not work when you go to test movie, you will need to upload the files or preview from something like DREAMWEAVER.

if this doesnt work, lemme know, and ill try and help, or contact liljim or thisisnotmike, they know what they are on about!

-BEAST

Response to opening new windows with java 2001-03-26 14:39:50


thanks much....but I still got a problem over here. I can get the new window to pop up where I want it and everything but I'm also getting another window with the address being the entire java code. It's almost like flash opens up that window and then that window opens up the one I want. I'm using flash 4 and here's the code I'm putting in

javascript:window.open ('http://pub28.ezboard.com/bakastones','newwin','menubar=no,toolbar=no,scrollbars=yes,width=520,height=300,resizable=yes,screenx=250,screeny=60,top=60,left=250')

and I'm sending it to a blank window....is there something wrong with that code!? this is what I'm working on....click on forum to see what I mean my dumb ass page