# Why undefined?

**URL:** https://forum.kirupa.com/t/why-undefined/84279
**Category:** Uncategorized
**Created:** [March 25, 2005, 11:01pm UTC](https://forum.kirupa.com/t/why-undefined/84279 "2005-03-25T23:01:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)
#### Post date: [March 25, 2005, 11:01pm UTC](https://forum.kirupa.com/t/why-undefined/84279/1 "2005-03-25T23:01:13Z")

</div>

hey , quick question…  
why does this return undefined? , the movie which im loading in works perfectly so its something in thtis code which is not right ( its tracing undefined)

[AS]  
if(!xxx){  
menu.loadMovie(“menu1.swf”); //load in Menu 1  
loadintowhat=menu;  
xxx=true;  
}  
loadbar1(loadintowhat);

loadbar1 = function (loadintowhat) {  
tot=[loadintowha].getBytesTotal();  
lod=[loadintowhat].getBytesLoaded();  
trace(tot+" "+lod);  
}  
[/AS]

thanks

// VoS
