View Single Post
  #4  
Old 09-01-2009, 08:43 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Ahh... Try this instead:
PHP Code:
this.scrollto 0;
for (
temp.this.scrollto;i<this.scrollto+5;i++) {
  
showtext(200+i-this.scrollto,........,this.array[i]);
}
this.scrollto this.scrollto%this.array.size()-5
Problem is the showimgs from previous numbers are sticking around as they're not being hidden after used. That should subtract the offset so it will always display with an index of 200-205.

You can also simply detect when there is a change in what's being hidden(this.scrollto changing) and hide all the images before you display them again. The next loop will refresh them, therefor hiding all the unused and showing the current properly.
Reply With Quote