I have set up a static control in a window
The image for the static control is an animated sprite.
The animated sprite looping attribute is set to no
The animated sprite works fine once, so I have attempted to set it performing 5 loops, I have done this by using the methods Play() and Reset()
When I run the program I get cannot associate method with object for both Play() and Reset(). I have tried both methods , with a reference to both the control objects and a reference to the control objects image, neither can accept the method, any ideas
if (questwin == null)
{
}
var showcrystal = statuswindow.
GetControl("crystal");
//gets the static control crystal var cryspic = showcrystal.
GetImage();
// gets a reference to the static control sprite //Game.Msg(cryspic);
leftpage.
SetImage("data\interface\questlog\qj1.png");
rightpage.
SetImage("interface\questlog\q1start.png");
// global log_but_stat = 1;
for (var n =1;n < 4; n=n+1)
{
// sets image visible
cryspic.
Play();
// plays the animation
cryspic.
Reset();
// resets the animation }
}