https://wiki.bennugd.org/index.php?title=Frame_fli&feed=atom&action=historyFrame fli - Revision history2024-03-29T13:55:54ZRevision history for this page on the wikiMediaWiki 1.36.2https://wiki.bennugd.org/index.php?title=Frame_fli&diff=10805&oldid=prevKloppix at 16:16, 27 July 20122012-07-27T16:16:07Z<p></p>
<p><b>New page</b></p><div>[[Category:functions]]<br />
[[Category:fli]]<br />
[[Category:mod_flic]]<br />
<br />
==Definition==<br />
'''INT''' frame_fli ( )<br />
<br />
Advances to the next frame of the animation started by [[Start_fli]](). This function returns 0 when the animation is over. During the animation, it returns the current frame that is displayed. Because it is related [[Start_fli]](), there can only be one fli/flc animation beeing played at one given time.<br />
<br />
== Parameters ==<br />
<br />
This function has no arguments.<br />
<br />
== Notes ==<br />
<br />
There is also a similar function called [[Fli_frame]]() which can be used for independent animations created by [[Fli_start]]().<br />
<br />
== Returns ==<br />
'''INT''' : Success<br />
<br />
{|<br />
| 0 || - The animation is over.<br />
|-<br />
| >0 || - The current frame of the animation.<br />
|}<br />
<br />
== Example ==<br />
<pre><br />
/ import modules<br />
IMPORT "mod_say";<br />
IMPORT "mod_debug";<br />
IMPORT "mod_proc";<br />
IMPORT "mod_grproc";<br />
IMPORT "mod_map";<br />
IMPORT "mod_key";<br />
IMPORT "mod_video";<br />
IMPORT "mod_screen";<br />
IMPORT "mod_flic";<br />
<br />
<br />
GLOBAL<br />
<br />
int fli_file1;<br />
<br />
<br />
PRIVATE<br />
<br />
<br />
PROCESS main ();<br />
<br />
PRIVATE<br />
int status;<br />
<br />
BEGIN<br />
<br />
set_mode(640,480,16);<br />
<br />
// int start_fli (string filename, int x, int y);<br />
fli_file1=start_fli("video.fli",0,0);<br />
<br />
say(fli_file1);<br />
<br />
WHILE (NOT key(_esc))<br />
<br />
status=frame_fli(); // We show the following frame<br />
say("frame no.: "+status);<br />
<br />
FRAME;<br />
END<br />
<br />
// stop the fli file<br />
end_fli();<br />
<br />
END<br />
</pre><br />
<br />
Used in example: [[Start_fli]](), [[End_fli]](), [[Reset_fli]](), [[say]](), [[key]]()<br />
<br />
<br />
== See also ==<br />
<br />
[[Start_fli]](), [[End_fli]](), [[Reset_fli]]().<br />
<br />
{{Moduledocbox<br />
| module = Mod_flic<br />
}}</div>Kloppix