Problem using Google "ProgressiveImageSequence.class.js"

Problem using Google "ProgressiveImageSequence.class.js"

Hi guys:

I want: to do a video with image sequence, and there is a class "ProgressiveImageSequence.class.js" can do this.

I did: I linked beloved jquery lib and this class file to my html. then instanced an object of this class and use it's method to get a image.

the code:

  1. var imageSeqLoader = new ProgressiveImageSequence( "../images/vid-{index}.png" , 15, {
    indexSize: 1,
    initialStep: 1,
    onProgress: handleLoadProgress,
    onComplete: handleLoadComplete,
    stopAt: 3
    });

    var index=1;
    var img = imageSeqLoader.getNearest( index );

    alert(img);













the result is "null". that means it can't get an image near the index.

Problem:
i dont know where the problem is?

i need your help, thankyou!