# Why won't the second part of my code execute (Flash5)

**URL:** https://forum.kirupa.com/t/why-wont-the-second-part-of-my-code-execute-flash5/31657
**Category:** flash
**Created:** [September 25, 2003, 12:28pm UTC](https://forum.kirupa.com/t/why-wont-the-second-part-of-my-code-execute-flash5/31657 "2003-09-25T12:28:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ericinho](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ericinho](https://forum.kirupa.com/u/ericinho)
#### Post date: [September 25, 2003, 12:28pm UTC](https://forum.kirupa.com/t/why-wont-the-second-part-of-my-code-execute-flash5/31657/1 "2003-09-25T12:28:04Z")

</div>

on (release) {  
container.loadMovie(“images.swf”);  
if (container.getBytesLoaded() == container.getBytesTotal()) {  
FadeIn(0);  
}  
else {  
container.loadMovie(“images.swf”);  
}  
}

it loads the SWF fine, but the FadeIn function is not being applied… The FadeIn function needs the SWF to be loaded… is that maybe the problem… to put this all in one script on a button???
