Hello there!
(...)
Well, what that does, in the same situation as above, is that when Tweener
is done, that very own load() function is called again.
I've tried using Delegate, delegating to himself, to the superclass, nothing
did it.
I've also tried creating a local function that just calls super.load() and
delegating to that, but no luck either.

My guess at the moment is that it's a side-effect to the "weird" AS2
implementation of static classes.
However I'm curious. Am I doing something completely wrong and not noticing
it? Is my implementation flawed?
Or there is a way to work that around?

Hm.. that's a good question. It runs functions inside of the instance using .apply, but if you pass the super.load without wrapping it, I'm sure exactly how the function reference is handled by actionscript.

Anyway, have you tried this instead?

public function load():Void {
   var obj:Object = new Object({
      _y: 200,
      time: 1,
      onComplete: function() { super.load(); }
   });
   Tweener.addTween(this, obj);
}

I believe your overall implementation is fine.

Zeh
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to