# Fade in script

**URL:** <https://forum.kirupa.com/t/fade-in-script/252461>\
**Category:** Uncategorized\
**Created:** [February 20, 2008, 12:03pm UTC](https://forum.kirupa.com/t/fade-in-script/252461 "2008-02-20T12:03:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyld\_thing](https://avatars.discourse-cdn.com/v4/letter/w/5f8ce5/32.png) [@wyld\_thing](https://forum.kirupa.com/u/wyld_thing)\
**Post date:** [February 20, 2008, 12:03pm UTC](https://forum.kirupa.com/t/fade-in-script/252461/1 "2008-02-20T12:03:25Z")

</div>

ok, i’ve got this external image loading in but when it loads in I want it to fade in instead of just appear.

here is the code I have already:

[COLOR=seagreen]mybg.contentPath = “images/flash-bgs/” + \_root.page + “.jpg”;[/COLOR]

Im thinking i’ve got to link it in with this code.

[COLOR=blue]function fadeIn() {  
this.\_alpha += 25;  
if (this.\_alpha\>=100) {  
this.\_alpha = 100;  
this.onEnterFrame = null;  
}  
}[/COLOR]  
[COLOR=#0000ff][/COLOR]  
[COLOR=black]please help[/COLOR]
