DECLARE SUB DQBopenFLI (FileName AS STRING, Frames AS INTEGER, Speed AS
INTEGER)
FileName - FLI animation file name
Frames - Integer variable that will hold the total frames number
Speed - Integer variable that will hold the animation speed factor
> 0 Operation successful > 1 Not enough free base memory > 2 Cannot open file or file does not exist > 3 General file reading error > 4 Bad or unknown file format > 5 A FLI file has already been opened
Opens a FLI file and initializes the animation. The DQB internal FLI routines cannot handle more than one file opened at the same time, so if you call this function and then you try to call it again, or to call DQBplayFLI, you'll get error 5; an animation file can be closed by using the DQBclose function. DQBopenFLI also allows you to know the number of frames and the speed of the specified FLI file, by passing QB variables to the function.
As for normal DQBplayFLI, also this function requires 64K of additional conventional memory as decoding buffer. See also DQBcloseFLI, DQBplayFLIstep, DQBplayFLI
See DQBplayFLIstep example