Esempio n. 1
0
        protected void Seek(int amount)
        {
            if (flash == null)
            {
                return;
            }
            Boolean wasPlaying = flash.Playing;

            Pause();

            int current = flash.CurrentFrame();
            int total   = flash.TotalFrames;
            int target  = current + amount;

            flash.FrameNum = Math.Max(0, Math.Min(target, total));

            if (wasPlaying)
            {
                Play();
            }
        }