Function call keeps returning undefined !?

This really puzzles me. I have 5 buttons that onRelease (= when clicked) calls the same function with each a different variable.

contentLoader(profile);
contentLoader(projects);
and so on.

the function is:
function contentLoader(sName:String) {
trace(sName);
}

Now the trace returns ‘undefined’…what I am doing wrong ? I just do NOT see it anymore :slight_smile:

The idea behind is that I want to use a moviecliploader to load in the content corresponding with the clicked button (projects.swf,
so it’ll use myMCL.loadClip(sName + “.swf”);

That trick always worked, but like I said, it keeps returning undefined. Did I make a mistake by strict data typing sName as a String ?

Thanks!