I am using a LoadVars() object inside a class. It’s loading an external text file, and all is working in that regard. Here’s part of the code that checks when the text file has been loaded; I named the loadvars object “load_info”:
load_info.onLoad = function(true) {
if (true) {
...bunch of statements...
}
}
But within the above function literal I need to be able to reference and set some of the properties of the class, and my first mistake was assuming using ‘this’ would do so, but it would be referencing the function object, and not the class object, as I soon found out.
I have looked at other ways of doing the onLoad-true-checking function, but I’m still at a loss.
(I also tried the dumb solution of creating new _root variables as means to transfer back and forth the class property values–it doesn’t seem to work for what I’m doing… the problem being that there are many instances of the class object setting the same _root variable)
Thanks.