got problem with this line 227 with flash8+as2lib 0.9.3
-----------------------------------------------------
226 : private function hasFinished(Void):Boolean {
227 : var mc = eval(movieClip._target);
228 : // workaround for a bug of the flash compiler
-----------------------------------------------------
i got "undefined" here so hasFinished function always return "false"
look like "movieClip" is destroy by loadMovie so movieClip._target is gone
then i fixed this by keep _target in var by add this code
//_target
120 : private var _target:String;
//set _target
133 : this._target = movieClip._target
//get _target
var mc = eval(this._target);
all thing work fine now ;)
SwfFileLoader hasFinished eval undefined fix
It seems that the current Flash Compiler (Flash CS3) doesn't have this bug anymore.
So I simply commented out the workaround and it worked:
So the fix goes like this:
...
221 private function hasFinished(Void):Boolean {
222 // var mc = eval(movieClip._target);
223 // workaround for a bug of the flash compiler
224 // movieClip = mc;
...