This content has been marked as final. Show 4 replies
var thisObj:ghost = this;
has to be locally defined in the individual function where the onLoad method is fired. You cannot directly use thisObj from the constructor. So in your case, in your function addLinkDoc(), define locally thisObj before the onLoad method.
you're within the toReceive LoadVars scope. try:
you can use de Delegate class to declare in wich scope you want your function to have access to. You will also need to add your onLoad methods oustide the function. Note: notice the keyword "this" when use the Delegate... il mean you want your function to have access to "this" (your class in that case).
guinness - I see, so my onLoad is too detached from my "=this" declaration, Adobe has both of these in the same function, but I missed that. Thank you.
kglad - this._parent doesn't play nice with callbacks in classes. It has different behavior than in timeline functions.
butcho - thank you, I'll try the delegate class, it looks like a nice solution. :)