Resize window

okay, i’m adding a contact form on my flash site, using brave net, because i’m to poor to pay for service that supports php.
so, what i have is a contact button on m flash site, that opens a new window with the form on it,
what i want to do is resize the window, so its not a full window,
how can i do it with java script?

there is no html for the page that has the contact button, so i don’t know how to resize the new window,
anyone know what to do?

You can use this tutorial, the size of the window is specified in flash so there’s no need to edit any HTML.

http://www.kirupa.com/developer/mx/centered_popup.htm

thanks EG

well i tried that, and i followed everything exactly, but when i click the submit button, nothing happens,

i added the .fla, although i’m pretty sure its right.

This is what you have on your button.

on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "http://www.geocities.com/falloutbmx/contact.html";
	target_winName = "submit an article";
	width = 400;
	height = 400;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 1;
	resizable = 0;
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

You need to replace the spaces in winName or add underscores so that it looks like this:

on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "http://www.geocities.com/falloutbmx/contact.html";
	target_winName = "submit_an_article";
	width = 400;
	height = 400;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 1;
	resizable = 0;
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

You also need to test the movie in html for the popup to work, it won’t work if you’re testing it in flash.

okay, i didn’t know that you couldn’t use spaces, everything works perfectly now, thank you for your time/help.

no problem. =)