# IF not working

**URL:** <https://forum.kirupa.com/t/if-not-working/167078>\
**Category:** flash\
**Created:** [October 25, 2005, 9:20am UTC](https://forum.kirupa.com/t/if-not-working/167078 "2005-10-25T09:20:14Z")\
**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 25, 2005, 9:20am UTC](https://forum.kirupa.com/t/if-not-working/167078/1 "2005-10-25T09:20:14Z")

</div>

Hi guys,

## Main timeline, 1e keyframe, layer “Action”:

function Preload (){  
filesize = mcIcontainer.getBytesTotal();  
loaded = mcIcontainer.getBytesLoaded();  
trace (filesize);  
if(loaded != filesize){  
trace(loaded != filesize);  
frameNumber = Math.round((loaded/filesize)\*33);  
trace (frameNumber);  
}  
}

## bt.onPress = function (){ mcIcontainer.loadMovie (this.movie); }

## Main timeline, onstage, 1e keyframe, label “container” movieclip: mcIcontainer

## onClipEvent(load){ \_root.Preload }

Ok so tracing the filesize is working.  
But tracing the boolean and frameNumber isn’t it looks like it isn’t even working the if syntax!  
I’m breaking my brains cause in my logic this should work or lol maybe not.

Please what am i doing wrong, any suggestions???

Great Thanks Ibizzz
