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

Chapter 15. Time- and Frame-Based Dynamism > DETERMINING THE PASSAGE OF TIME

DETERMINING THE PASSAGE OF TIME

The getTimer() function is used to return (in milliseconds) the length of time that’s elapsed since the movie was first opened and played. Thus, if your movie has been open for six seconds, the following script:

					playBackTime = getTimer();
				


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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