Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time problem

Status
Not open for further replies.

sup919

Programmer
Joined
Jan 10, 2002
Messages
31
Location
TH
hi there
have a question about timing in flash. Basically, what do i have to do if i want the image in the movie clip to automatically load a random picture at every 5-6 seconds interval??
many thanks
sun
 
Use setInterval(), you'll need to set up a function to load your picture then call it like this:

loadPicture=function(){
//load image code goes here
}
//
setInterval(loadPictureFunction, 5000);//5000 being the time in milliseconds



 
thanks wangbar got it sorted now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top