Button Alpha Fade and On click load centered popupwindow

Ok guys I got a lot of help originally from L0stinbeta on the code for this particular section. He helped me create these buttons to load an exterior .swf file when clicked. All I want to do is change it to load a centered popup window instead, and be able to specify the dimensions of the window. Unfortunately I have exhausted my action script talent, and I am totally lost. Basically
I am trying to combine the two codes below. Please help! thx
onClipEvent (load) {
this._alpha = 30;
// set original alpha
onClipEvent (enterFrame) {
function fadeOut() {
if (this._alpha>30) {
this._alpha -= 10;
} else {
// this function increases the _alpha of the object calling it
// when it reaches 100, it deletes its enterFrame
function fadeIn() {
if (this._alpha<100) {
this._alpha += 10;
} else {
this.onRollOver = function() {
// when you roll over the button, you define its enterFrame as the
// function you have just declared. You could hard code it, but it is
// clearer that way and more reusable
this.onEnterFrame = fadeIn;
this.onRollOut = function() {
this.onEnterFrame = fadeOut;
this.onRelease = function() {

and this one
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);

Bullseye, take a look at this tutorial on centered pop ups. It should come in handy, you already have the javascript half of it, now you need the actionscript part and that could be found on this tutorial. =)


Electron thats where I got the code for the bottom half. I just dont know how to implement the two codes together and have them function properly. I have the .fla if anyone needs it. I am so stuck!

let me take a look at your fla, maybe i can help. =)

Awesome man thx…Heres the link. There might be some issues with the code right now because I tried several different things, but the action of the alpha fade still works perfect. All I want it to do is launch a centered popup window at my desired dimensions. Hey hop on AIM if you can man. I’ll explain it to you better.


Ok here it is, it should work now, let me know when you have it so i can take it off my server.

Got it man!!! thankyou so much!!

no problem. =)