This command will return the frame of the specified sprite. Frames are only returned from animated sprites created with the CREATE ANIMATED SPRITE command. You should specify the Sprite Number as an integer value.

Syntax: 
Return Integer=SPRITE FRAME(Sprite Number)