• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Unlocking the Power of Movie... > Calling a Function Repetitively Usin...

Calling a Function Repetitively Using setInterval()

The setInterval() global function calls a function or method repetitively at regular intervals while a movie plays. You provide a parameter that specifies an interval in milliseconds. The two formats are as follows:


setInterval(function,interval[,arg1, arg2, ...,argn] ) 
setInterval(object, methodName,interval[,arg1,arg2, ..., argn] ) 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint