NextFrame(id[, x, y, frame])
frameargument or set it to 0,
NextFrame()will show the next frame of the anim layer. If you pass -1 in the
frameargument, the last frame will be displayed. The
yarguments can be used to move the layer to a new position while changing the frame. If you do not need them, pass
#USELAYERPOSITIONwhich will keep the layer where it is.
Starting with Hollywood 9.0, this function can also be used with text layers that are in list mode to show the next list items. See TextOut for details.
You need to enable layers before you can use this function. See Layers introduction for details.
EnableLayers InsertLayer(1, #ANIM, 1, 0, #CENTER) For k = 0 To 400 Step 3 NextFrame(1, k, #USELAYERPOSITION) Wait(5) NextPlays the anim number 1 while moving it from x-position 0 to 400.