Re: [Flashcoders] MovieClipLoader Reusage

2006-09-08 Thread Ramon Miguel M. Tayag
Probably because of a scope problem. Lookup "Delegate" On 9/8/06, Helmut Granda <[EMAIL PROTECTED]> wrote: Can the MovieClipLoader class be reused? I have the following code: var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); myListener.onLoadComplete =

Re: [Flashcoders] MovieClipLoader Reusage

2006-09-08 Thread Kenneth Kawamoto
Your code will load the same SWF again and again forever. I wrote a sequential loading script for someone recently, may be you can adopt the concept from it. This script gathers the total byte size of all the SWFs first, then starts loading SWFs one by one, so that you can monitor the loading

Re: [Flashcoders] MovieClipLoader Reusage

2006-09-07 Thread Helmut Granda
thanks for your suggestion, still I cant get it to work. all I am trying to acomplish is a preloader that will load files in order so if it is done with 1 then load the next one and so forth. I have found some information in how to load 5 files at the same time. Also I was able to call the functi

Re: [Flashcoders] MovieClipLoader Reusage

2006-09-07 Thread Peter O'Brien
try subbing your code from onLoadComplete to an onLoadInit function, that looks like it should do the trick On 9/7/06, Helmut Granda <[EMAIL PROTECTED]> wrote: Can the MovieClipLoader class be reused? I have the following code: var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener

[Flashcoders] MovieClipLoader Reusage

2006-09-07 Thread Helmut Granda
Can the MovieClipLoader class be reused? I have the following code: var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); myListener.onLoadComplete = function(targetMC:MovieClip):Void { trace("loaded" + targetMC); myMCL.loadClip("right2.swf", "img2");//-