-
1. Re: loadingSecondFile - Dosen't work
Ned Murphy Sep 6, 2013 7:24 AM (in response to Ron Colmen)What does the loading code look like?
-
2. Re: loadingSecondFile - Dosen't work
Ron Colmen Sep 6, 2013 9:02 AM (in response to Ned Murphy)callItems_btn.onRelease = function () {
for(i=0; i<3; i++) {
unloadMovie(_root.mc[i].mc2)
}
senderLoad.sendAndLoad("www.web.com/the.php",receiveLoad,"POST");
};
receiveLoad.onData = function(src) {
item_text = src;
for(i=0; i<3; i++) {
prototypeLDR.loadClip("www.web.com/"+i+"/new/item.swf, _root.mc[i].mc2);
}
}
prototypeLDR.addListener(prototypeLO);
var swfsLoaded:Number=0;
var prototypeLDR:MovieClipLoader = new MovieClipLoader();
var prototypeLO:Object = {}; prototypeLDR.addListener(prototypeLO);
prototypeLO.onLoadInit = function(targetMC:MovieClip){
swfsLoaded++;
if(swfsLoaded==3){
trace ("loaded")
}
}
-
3. Re: loadingSecondFile - Dosen't work
Ned Murphy Sep 6, 2013 11:13 AM (in response to Ron Colmen)Unless you have an array named "mc" that has mc0 thru mc2 in it, your use of
_root.mc[i].mc2
is not going to target the object you identified in first posting that you specified as
_root.mc1.mc2
basically, _root.mc[i].mc2 will not be _root.mc1.mc2
You would want to be writing that as _root["mc"+i].mc2
-
4. Re: loadingSecondFile - Dosen't work
Ron Colmen Sep 6, 2013 12:37 PM (in response to Ned Murphy)Thanks Ned. But I've got an array named mc
var mc:Array = [mc1, mc2, mc3];
I'm loading the below code as an external swf as well. Could that be causing this issue?
function traceName():Void {
trace(this._name);
}
for (i=0; i<5; i++) {
_root.mc1.mc2["color"+i].onRelease = traceName;
}
-
5. Re: loadingSecondFile - Dosen't work
Ned Murphy Sep 6, 2013 12:50 PM (in response to Ron Colmen)It could be. That code should be getting assigned by the main file that does all of the loading, and it should happen after each time a new set of files is loaded.
-
6. Re: loadingSecondFile - Dosen't work
Ron Colmen Sep 6, 2013 2:15 PM (in response to Ned Murphy)Thanks Ned.



