public static extern IntPtr GetAncestor(IntPtr hwnd, GAF flags);
public void FrameToFrame(GAF.Core.GAFMovieClip mov, bool loop) { int i; uint k1=1; i=(int)mov.getCurrentFrameNumber (); i++; if ((i>(int)mov.currentSequence.endFrame)&&(loop)) i=(int)mov.currentSequence.startFrame; else if ((i>(int)mov.currentSequence.endFrame)) if (i<(int)mov.currentSequence.startFrame) i=(int)mov.currentSequence.startFrame; mov.gotoAndStop(k1*(uint)i); }