Why undefined?

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