PVGadgets_AnimGadgetPlay(GadgetID.l [,Loop.l [,First.w,Last.w]] )
Previous  Top  Next

Plays an AnimGadget animation sequence forever unless number of loops is specified. Start and end range can also be specified.


Use:
PVGadgets_AnimGadgetPlay(Gadget,4,6,12)


Loop
Number of times to loop animation sequence (default= forever)

First
Starting frame of animation sequence (default=first frame)

Last
Ending frame of animation sequence (default=last frame)




Example:

hAnimGadget=PVGadgets_InitAnimGadget()
#Window_Main=1

If OpenWindow(#Window_Main,175,0,282,68,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Demo")
 
Gadget_Main_Anim=PVGadgets_AnimGadget(hAnimGadget,#Window_Main,0,0,280,65,160)  
 
PVGadget_AnimGadgetPlay(Gadget_Main_Anim,10,6,12)  
 
Repeat  
Until WaitWindowEvent()=#PB_Event_CloseWindow  
PVGadgets_FreeAnimGadget(hAnimGadget)  
 
EndIf