Returning value from function: Scoping Problem

I have the following function defined in a class:


vidNetStream.onMetaData = function(myMeta){
	_root.totalDuration = myMeta.duration;
	//trace(_root.totalDuration + "!");
}

totalDuration is a private variable defined in my class… how can I get that function to effectively save totalDuration??

Cheers.