Beta!

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

www.aaronsleeper.com/bleh.fla

www.aaronsleeper.com/samplePopup.html

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

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

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…

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.

i copied and pasted the code where you said to :frowning:

it’s performing a getURL on the javascript you set … go to 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 &#%^!)@#$%!_)#@$

You didn’t read my edit :wink:

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

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 :frowning:


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);
}


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);");
};

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.

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 :slight_smile:

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

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.