this is my send button below...
PHP Code:
sendBtn.onRelease = function() {
    
subEmail = new Array();
    for (
i=0i<dgQue.lengthi++) {
        var 
subDg dgQue.getItemAt(i).Subscriber;
        var 
emailDg dgQue.getItemAt(i).Email;
        var 
fullAddr subDg+emailDg;
        
subEmail.push(fullAddr);
    }
    
trace(subEmail.toString());
    
subTo subEmail;
    
subFrom "sub@sub.com";
    
subSubject "New Subsriber Message";
    
subtaMessage taMessage.text;
    
trace(taMessage.text);
    
loadVariables("subscriber.php"this"POST");
    
//and when receives the answer from
    //the server...
    
this.onData = function() {
        for (var 
a in this) {
            
trace([athis[a]]);
        }
        if (
this.output == 'sent') {
            
errTitle.text "Thank You.";
            
errType.text "Your message has been sent succesfully.";
        } else {
            
errTitle.text "Error!";
            
errType.text "Attention, an error occurred while processing your message. Please try again.";
        }
    };
}; 
i have a datagrid named "dgQue" with a set of values in the "Subscriber" and the "Email" columm.
there is nothing wrong with my current function above.
what it does, depending on how my subscribers are in the datagrid, is that it will populate all of them into an array called, "subEmail" and bulk e-mail all of the subscribers into the datagrid.

what i would like to do now is that instead of sending in bulk, i would like to send individually like so....
i would like it to gather the first items of row #0 (from var i) and run through subscriber.php script to send mail.
once that is complete i would like it to proceed onto row #1 in the dgQue datagrid, run through the subscriber.php script, send e-mail and so on to #2, etc, etc, etc...depending on how many subscribers (dgQue.length) are in the dgQue.
i would like to do this while under the timely control of setInterval(); of 1000 ms.

i know i need to do the following:

- get rid of the array since it's not necessary for this send to per item in datagrid method
- encapsulate the rest of the script inside the for loop
- get rid of the .push() since there will no longer be an array
- integrate setInterval...somehow
- set an clearInterval ID for the function

i've tried many approaches but i've failed miserably.

please help.
any help on how to achieve this will be greatly appreciated.

thank you in advance.