# Prototype fade in

**URL:** https://forum.kirupa.com/t/prototype-fade-in/164834
**Category:** flash
**Created:** [October 5, 2005, 10:24am UTC](https://forum.kirupa.com/t/prototype-fade-in/164834 "2005-10-05T10:24:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ibenschop](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@ibenschop](https://forum.kirupa.com/u/ibenschop)
#### Post date: [October 5, 2005, 10:24am UTC](https://forum.kirupa.com/t/prototype-fade-in/164834/1 "2005-10-05T10:24:38Z")

</div>

Hi guys  
i’m trying to play prototype.  
Came up with this idea case for now

//function fade in  
MovieClip.prototype.fadein = function (){  
this.\_alpha=0  
this.\_alpha +=1  
this.onEnterFrame = function (){  
if (this.\_alpha\>99){  
this.\_alpha = 100  
delete this.onEnterFrame  
}  
}  
}  
mc\_container.onEnterFrame = function(){  
this.fadein();  
mc\_container.loadMovie(“test.swf”)  
};

It doesn’t seem to work : S: S what i do wrong??
