I am very new to loadermax and fairly inexperienced with AS3 so apologise if I have missed or misunderstood some documentation that explains this.
I am currently using SWFLoader to load 3 external swfs into a main swf. I have constructed a preloader in this main swf that 'draws' a ring using masking. The ring currently tracks the load progress of the whole queue (see code below) however I want it to track the load progress of Atoms.swf. The ultimate aim is to repeat this for the other array assets.
//Load external SWFs into queue
var urls:Array = ["Atoms.swf","Compounds.swf","Quiz.swf"];
var queue:LoaderMax = LoaderMax.parse(urls);
var swfs:Array = queue.content;
//set variables to calculate ring rotation
var loaded1:Number = event.target.progress;
//mask one semi-ring over the other
My reasoning tells me that the event.target.progress needs to be changed to track the asset loading however I am unsure what code (if any) would accomplish this. I have considered just hard-coding a ratio of queue progress to swf size for each asset but would really prefer something a bit more dynamic (so I don't need to change it when I update the external swfs in future).
I realise that this may not be the best implementation of loadermax however it currently works and I would prefer not to change it unless necessary. Sorry if this seems a bit long winded, I would really appreciate a speedy response for some enlightenment in this matter.
Thanks for LoaderMax, the whole of GreenSock and helpful responses.