Argument missing error 1136

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!

Hi
Tanks for your reply, but where would place the loadBan?
I’ve tried some (event/poop… :Event)
but then i miss a righparen before the colon…
I must admit i’m a bit lost, and again if you see a smarter way to “go round in circles” i take it!

yep, but i’d like to keep on loading pictures desappearing on top of another, itself diseappearing ontop of another…

Thank you, simple, best. my code is working now.
And thanks for the little lesson, very helpful.