# Beta!

**URL:** https://forum.kirupa.com/t/beta/14316
**Category:** Uncategorized
**Created:** [February 25, 2003, 12:19am UTC](https://forum.kirupa.com/t/beta/14316 "2003-02-25T00:19:32Z")
**Posts on this page:** 8
**Page:** 2

<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: [February 25, 2003, 7:35pm UTC](https://forum.kirupa.com/t/beta/14316/21 "2003-02-25T19:35:26Z")

</div>

i reposted my fla file and the html file i want to pop up … for the moment it’s called samplePopup.html

it’s not working

[www.aaronsleeper.com/beh.html](http://www.aaronsleeper.com/beh.html)

[www.aaronsleeper.com/bleh.fla](http://www.aaronsleeper.com/bleh.fla)

[www.aaronsleeper.com/samplePopup.html](http://www.aaronsleeper.com/samplePopup.html)

---

<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: [February 25, 2003, 7:42pm UTC](https://forum.kirupa.com/t/beta/14316/22 "2003-02-25T19:42:44Z")

</div>

After checking your code, you set it up all wrong.

Scene 1/Window/WinContent/Layer Actions/Frame 1 add…

```php
Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
	getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"')}else{myWin.focus();};void(0);");
};

```

Scene 1/Window/WinContent/Layer 1/Frame Label Contact/Button add…

```php
on (release) {
	//customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "http://www.kirupa.com/modular/pop-up.htm";
	target_winName = "kirupa";
	width = 400;
	height = 300;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 1;
	resizable = 0;
	//sends data back to the function
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

Works great for me.

Alright… I definitely cannot open Flash anymore. So your on your own now unless someone else comes along to help (or if you want to send me some new ram chips :beam: ).

EDIT: grrrr… That forum adds that space between Java and Script. So change Java script to Javascript in the first set of 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: [February 25, 2003, 7:57pm UTC](https://forum.kirupa.com/t/beta/14316/23 "2003-02-25T19:57:59Z")

</div>

i copied and pasted the code where you said to ☹

it’s performing a getURL on the javascript you set … go to [www.aaronsleeper.com/beh.html](http://www.aaronsleeper.com/beh.html) and click it and see … the window doesnt pop up and you get an error

i think i’m just retarded &#%^!)@#$%!\_)#@$

---

<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: [February 25, 2003, 7:59pm UTC](https://forum.kirupa.com/t/beta/14316/24 "2003-02-25T19:59:58Z")

</div>

You didn’t read my edit 😉

You have to remove the space between Java and Script in the first section of code. The forum automatically adds that that there as to prevent any destructive code or something.

So…

java script

should be

javascript

---

<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: [February 25, 2003, 8:08pm UTC](https://forum.kirupa.com/t/beta/14316/25 "2003-02-25T20:08:30Z")

</div>

still does the same thing … i took the space out of the frame’s actions so it now reads javascript

note:: i still have the javascript code you specified in beh.html inbetween the \<head\>\</head\> tags

but you can go to my site and see it doesn’t work. i know i’m missing something stupid … can someone else please help so beta doesn’t have to open my fla again ☹

```php

on (press) {
    address = "samplePopup.html";
    target_winName = "sample";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //send data back to the function
    openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

```php

Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
    getURL("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"')}else{myWin.focus();};void(0);");
};

```

---

<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: [February 25, 2003, 8:11pm UTC](https://forum.kirupa.com/t/beta/14316/26 "2003-02-25T20:11:59Z")

</div>

Its not that I don’t want to open your .fla, its that I can’t. I get an insufficient memory amount error thingy.

And… clear your browser cache. It works great for me now because I have my IE set to check for new version everytime I view the page.

---

<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: [February 25, 2003, 8:17pm UTC](https://forum.kirupa.com/t/beta/14316/27 "2003-02-25T20:17:39Z")

</div>

what kind of ram do you have / need … i’ll look around when i get home tonight … i don’t think i have any extra but my roommate might have some old pc133 i could send you to ease the pain 🙂

thank you beta … it works … i’m just retarded … i should’ve known to clear my casche when my computer was going so slow … =)

---

<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: [February 25, 2003, 8:22pm UTC](https://forum.kirupa.com/t/beta/14316/28 "2003-02-25T20:22:47Z")

</div>

I forget what kind of ram this thing uses. I built it so long ago. I think it may actually be pc133 :beam: I am going to open it up later today and check it out.

[Previous page](https://forum.kirupa.com/t/beta/14316.md?page=1)
