# \_Blank (new) window size in Flash MX

**URL:** <https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903>\
**Category:** flash\
**Created:** [November 30, 2002, 9:32pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903 "2002-11-30T21:32:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovaGiant](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@NovaGiant](https://forum.kirupa.com/u/NovaGiant)\
**Post date:** [November 30, 2002, 9:32pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/1 "2002-11-30T21:32:34Z")

</div>

I’m leaning to use Flash MX and was wondering how I might go about setting a specific window size when calling a hyperlink. (example) - Clicking on a link will open a new window at 150 px by 250 px. Anyone have a good tutorial on this?

Thanks in advance!!🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 30, 2002, 9:42pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/2 "2002-11-30T21:42:03Z")

</div>

Place this on your button:

```php
on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "URL of page you want to open here";
	target_winName = "";
	width = 400;
	height = 400;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 0;
	resizable = 0;
	//sends data back to the function
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

The javascript above opens a new window 400x400 with no scrollbars, replace the zeros with ones on each feature if you want to enable them. Just place the URL of the page you want into the script and you’re all set. Hope it helps. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 30, 2002, 9:47pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/3 "2002-11-30T21:47:49Z")

</div>

[size=1]\*\*hey electrongeek !! \*\*[/size]

where’s the other part of the code?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 30, 2002, 9:50pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/4 "2002-11-30T21:50:22Z")

</div>

ok … got the link now

[see tutorial](http://www.kirupa.com/developer/mx/centered_popup.asp)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 30, 2002, 9:53pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/5 "2002-11-30T21:53:06Z")

</div>

Oh shoot i forgot about that, you’re right kax, thanks. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 30, 2002, 10:02pm UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/6 "2002-11-30T22:02:01Z")

</div>

lol 😛

you don’t need to thank … 😏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 1, 2002, 1:24am UTC](https://forum.kirupa.com/t/-blank-new-window-size-in-flash-mx/8903/7 "2002-12-01T01:24:33Z")

</div>

Thank you!
