# On mouse over alpha fade?

**URL:** https://forum.kirupa.com/t/on-mouse-over-alpha-fade/5534
**Category:** Uncategorized
**Created:** [September 14, 2002, 8:50am UTC](https://forum.kirupa.com/t/on-mouse-over-alpha-fade/5534 "2002-09-14T08:50:22Z")
**Posts on this page:** 3
**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: [September 26, 2002, 9:21pm UTC](https://forum.kirupa.com/t/on-mouse-over-alpha-fade/5534/21 "2002-09-26T21:21:47Z")

</div>

I tryed to use the “loadmovie” function instead of loading it from the library and it works on the linked swf file. But as soon as I load that file under my main interface, it doesnt allow the swf to load. Almost like it wont let me have embedded swf files. I hope this make some sense. When is a good time to catch you on aim lostinbeta?

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: [September 27, 2002, 3:04am UTC](https://forum.kirupa.com/t/on-mouse-over-alpha-fade/5534/22 "2002-09-27T03:04:35Z")

</div>

Hey Bullseye, I actually won’t be on AIM for a while. I am going to my cabin for a little bit. Hopefully I can catch up with you when I come back:)

---

<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:42am UTC](https://forum.kirupa.com/t/on-mouse-over-alpha-fade/5534/23 "2002-12-01T01:42:55Z")

</div>

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 {  
null;  
}  
}  
// 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 {  
null;  
}  
}  
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() {  
\_root.loadfrom.loadMovie(“flowertruck.swf”);  
};  
}

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

[Previous page](https://forum.kirupa.com/t/on-mouse-over-alpha-fade/5534.md?page=1)
