Hello ppl,

I have an .as file which includes another .as file so that the methods defined in it can make use of a specific function. For some strange reason, some of the methods in the including file can access the data and some cannot. I've been trying to find some sort of pattern but have been unsuccesful so far. Does anyone have some idea what could be causing it?

Code:
//event triggered when form movie is loaded
FormData.onFormLoad=function(mc)
{
	this.formMovieRef = mc; //storing reference to form movie
	this.initVars();
	trace(testVar);		
}
this will trace the test variable created in the included file just fine... but this:
Code:
FormData.onSubjectLoad=function(mc)
{
	this.subjectPanelRef = mc; //referencing the subject panel on the stage
	this.subjectPanelRef.subject = this.subject; //when first loaded, subject it set to the default
	trace(testVar);	
}
traces 'undefined'. I find it eally strange and since the scope has not changed cannot figure out why some methods can access the data and some simply cannot.

Thnx in advance,

McMurphy