Movie Player ActiveX Control

FlashOverlayAdd

 

Add Flash Overlay to specific time.

Public Function FlashOverlayAdd(
  ByVal strSWFFile As String, _
  ByVal iXPos As Integer, _
  ByVal iYPos As Integer, _
  ByVal iWidth As Integer, _
  ByVal iHeight As Integer, _
  ByVal iStartTime As Double, _
  ByVal iEndTime As Double, _
  ByVal iAlpha As Integer, _
  ByVal clrKeyColor As Color
) as Bool 

 

Parameter
strSWFFile
The path of Flash file.

iXPos
Specifies the logical x-coordinate of the starting point of the Flash Image.

iYPos
Specifies the logical y-coordinate of the starting point of the Flash Image.

iWidth
Specifies the width of Flash Image.

iHeight
Specifies the height of Flash Image.

iStartTime
 The Flash image's start time in seconds.

iEndTime
 The Flash image's end time in seconds.

iAlpha
 The alpha value of Flash Image (0-255). A pixel with an alpha value of zero is completely transparent. A pixel with an alpha value of 255 is opaque.

clrKeyColor
 The Transparent color of the Flash Image.
 

Return Value
Return true -successful, otherwise return false.

Example

   

Visual Basic Syntax
MoviePlayer1.FlashOverlayAdd "c:\test.swf" ,0,0, 320, 240, 0, 30, 255, RGB(255,0,0)
MoviePlayer1.UseFlashOverlay = True
MoviePlayer1.FileName = "c:\yourfile.mpg"