'"工程"-"部件",加入以下2个控件
''Microsoft Common Dialog Control 6.0
''Shockwave Flash
'按CTRL+E,建立菜单,"文件"-"打开","打开"的名称为T_Open
'拷入以下代码
Private Sub Form_Load()
With ShockwaveFlash1
.Width = Form1.Width
.Height = Form1.Height - 800
.Top = 0
.Left = 0
End With
End Sub
Private Sub Form_Resize()
With ShockwaveFlash1
.Width = Form1.Width
.Height = Form1.Height - 800
.Top = 0
.Left = 0
End With
End Sub
Private Sub T_Open_Click()
With CommonDialog1
.FileName = ""
.Filter = "Flash文件(*.swf)|*.swf"
.FilterIndex = 1
End With
CommonDialog1.ShowOpen
If CommonDialog1.FileName = "" Then
Exit Sub
End If
ShockwaveFlash1.Movie = CommonDialog1.FileName
ShockwaveFlash1.ScaleMode = 2
ShockwaveFlash1.Quality = 1
End Sub
温馨提示:答案为网友推荐,仅供参考