Question about Variables
This is probably a fairly simple question, but I've never seen any documentation on it so I'm not sure of the answer.
Let's say I have the following code:
var myLoader:URLLoader;
function someFunction(){
myLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, onComplete);
myLoader.load(new URLRequest("something"));
function onComplete(e:Event):void{
//Some Code.
}
}
function someOtherFunction(){
myLoader = new URLLoader();
myLoader.addEventListener(Event.COMPLETE, onComplete);
myLoader.load(new URLRequest("somethingElse"));
function onComplete(e:Event):void{
//Some Code.
}
}
My question is, would it be possible for these two URLLoaders to interfere with each other, for instance if they were executed at the same time--even though they're confined to different functions? Thanks for the help.
