This content has been marked as final. Show 3 replies
1. Does the onLoadProgress work? Add trace statements there to prove it is functioning. Note running from IDE you may not see the onLoadProgress.
2. What is this represent inside of onLoadProgress. You should trace this trace(this) and see what it is. Use of this creates difficult to read code and may account for the confusion. Use trace statements to learn the true identity of any relative references in Flash.
3. Then that asks the question what is this in your code?
after 4 days or so I found the problem - it is how to target clips from within the listener!!!!!
when I replace this[holderName] with _root[holderName] everything works just fine!!!!!!!
Now this really confuses me. How should I target movie clips from within the event listener???? When I target from within the function "this[holderName].movieName" means main timeline but not for event listener!!!!
this is good code:
Declare these outside the function and on the root:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
and in last case inside the function
myMCL = new MovieClipLoader();
myListener = new Object();