TShockwaveFlash的使用

TShockwaveFlash主要属性如下:
ReadyState:读一个flash文件时的状态,其中包括0=Loading、1=Uninitialized、2=Loaded、3=Interactive  和4=Complete;
  TotalFrames:总帧数,只有当ReadyState = 4时才能访问该属性;
  FrameNum:当前播放的帧;
  Playing:播放或暂停一个flash;
  Quality:指定当前渲染的质量,包括0=Low, 1=High、2=AutoLow、3=AutoHigh;
  ScaleMode:缩放模式,0=ShowAll、1= NoBorder、2 = ExactFit;
  AlignMode:对齐模式,Left=+1、Right=+2、Top=+4、Bottom=+8;
  BackgroundColor:背景色,-1为默认颜色;
  Loop:是否循环;
  Movie:指定播放的flash文件路径,可以为一个URL。

TShockwaveFlash主要方法如下:
Play():开始播放动画;
  Stop();停止播放动画;
  Back();播放前一帧动画;
  Forward():播放后一帧动画;
  Rewind():播放第一帧动画;
  SetZoomRect(int left, int top, int right, int bottom):设置缩放的区域;
  Zoom(int percent):按百分比缩放;
  Pan(int x, int y, int mode):缩放播放面板,其中模式0为按像数、1为按窗口百分比。

TShockwaveFlash主要事件如下:
OnProgress(int percent):读取一个flash时触发;
  OnReadyStateChange(int state):状态改变时触发。states的值可以为0=Loading、1=Uninitialized、  2=Loaded、3=Interactive和4=Complete。

原文地址:https://www.cnblogs.com/smallmuda/p/1538168.html