I'm making a rather large class for a project. So keep in mind this is all in a class file, thus my scope issue. I know I need to pass the onLoad the instance of the class. I would normally just pass it thru the function. ie
dr_xml.onLoad = function(thisObj){} but this is reserved for whether it has loaded correcty and will rewrite the value to true / false. Any idea how to get my thisObj to be visible?
I also tried to overLoad the parameters of onLoad, so it would set the first to true / false, then pass my thisObj to no avail.
ActionScript Code:
function myFunction()
{
trace(thisObj); // traces my Instance
dr_xml = new XML();
dr_xml.onLoad = function ()
{
trace(thisObj); // undefined
processXML(dr_xml);
}
}
function processXML()
{
// yadda yadda
}