Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Problem with setTimeout or setInterval not working

I've been trying to get a simple continuous loop application working and for some reason I cannot get setInterval or setTimeout to work. They simply don't call the function specified.

Here is a simple sample app.js to show the problem: http://pastie.org/1146449

Basically I want to create a loop where the images change sequentially (until stopped or the application ends), but I can't get it loop.

What is my major malfunction here?

— asked September 8th 2010 by John Pataki
  • setinterval
  • settimeout
0 Comments

1 Answer

  • Accepted Answer

    setTimeout( function() {
    img_sequence();
    },1000);
    

    This should work.

    — answered September 8th 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.