const float frames=60;
const float delta=(M_PI*2)/frames;
double rot=0;
for(int f=0;f<frames;++f,rot+=delta){
SWFSprite *movieclip=new SWFSprite();
pie.draw(movieclip,wd/2,ht/2,r,r,rot);
movieclip->nextFrame();
SWFDisplayItem *item=movie->add(movieclip);
movie->nextFrame();
movie->remove(item);
}