Hi,
I’m kinda new to programmation, so by advance I appologize if my questions seem very Basic.
Here I am trying to build an endless animation, with a function calling an second one calling the firt again.
Maybe there is a smarter way to make a recursive function?
But when a call the first again I should pass an argument, error 1136.
ah, and so far, i’m here, what is the difference between event; evt; e; and Event ?
Here is the code:
bannerLoad.load(new URLRequest(“banner.xml”))
bannerLoad.addEventListener( event.COMPLETE, loadBan)
function looping(){
Tweener.addTweener(topLoader, {alpha:0, time:8, onComplete:function(){topLoader.source = bannerList[numero];
topLoader.alpha = 1;
loadBan();},
transition:“linear”});
}
function loadBan(event:Event){
banXml = new XML(event.target.data);
bannerList = banXml.pix;
topLoader.source = bannerList[6];
numero= Math.random()*bannerList.length();
bottomLoader.source = bannerList[numero];
looping();}
so, i’m missing an argument to call loadBan() within looping().
Please Help!