tips
[Top] [All Lists]

REALbasic Tip: Getting movies to refresh when time-consuming code is exe

To: "REALbasic Tips" <realbasic-tips at lists dot realsoftware dot com>
Subject: REALbasic Tip: Getting movies to refresh when time-consuming code is executing
From: Geoff Perlman <geoff at realsoftware dot com>
Date: Tue, 02 Apr 2002 15:50:09 -0600
If you have a tight loop or a SpriteSurface in Run mode, or something
similar which prevents QuickTime movies from playing, here is a
Declare that will force them to update:

   Declare Sub MoviesTask lib "Apple;Carbon;Multimedia" (movie as
Integer, maxMsec as Integer)

   MoviesTask 0, 0

Just call this from within your loop, or in your SpriteSurface's
NextFrame event, and the movies will keep on playing (even in OS X).

For details on this call, see Apple's documentation at:
<http://developer.apple.com/techpubs/quicktime/qtdevdocs/APIREF/ SOURCESII/mo
viestask.htm>

This tip was suggested by Joe Strout of REAL Software.
--
Geoff Perlman
President and CEO
REAL Software, Inc.
512-328-7325 x711 (voice)
512-328-7372 (fax)


 - - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
To unsubscribe from the Tips list, send an email to
<mailto:realbasic-tips-off at lists dot realsoftware dot com>


<Prev in Thread] Current Thread [Next in Thread>
  • REALbasic Tip: Getting movies to refresh when time-consuming code is executing, Geoff Perlman <=