[Tweener] Very quick question... (AS2)

Graeme Blackwood grayhammy at hotmail.com
Mon Jan 26 04:29:49 PST 2009


Hi all,

This is may be really lame I know, but I can't work out why this isn't doing what it is told.  All I want is to load an external swf, listen to it coming in, and when it is complete, loop round and load it again, forever.  Actually I will be adding code to load the next file in the sequence, but this snippet is essentially what is not working.  I cannot even get the trace("HERE"); to work...

Any ideas?


function preload() {
   var newListener = new Object();
   
   newListener.onLoadComplete = function(evt) {
      trace("HERE");
      preload();
   }

   preloader_mc.addEventListener("onLoadComplete", newListener);
 
   preloader_mc.loadMovie(movie.swf, preloader_mc);
}

Many thanks!

Graeme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090126/6bf04e33/attachment.htm>


More information about the Tweener mailing list