📄 form1.frm
字号:
VERSION 5.00
Object = "{D27CDB6B-AE6D-11CF-96B8-444553540000}#1.0#0"; "SWFLASH.OCX"
Begin VB.Form Form1
BackColor = &H00FF8080&
Caption = "播放flash动画"
ClientHeight = 6135
ClientLeft = 60
ClientTop = 345
ClientWidth = 7695
LinkTopic = "Form1"
ScaleHeight = 6135
ScaleWidth = 7695
StartUpPosition = 1 '所有者中心
Begin VB.Timer Timer1
Interval = 200
Left = 195
Top = 3135
End
Begin VB.CommandButton Command5
BackColor = &H00C0C0C0&
Caption = "退出"
Height = 405
Left = 6180
Style = 1 'Graphical
TabIndex = 5
Top = 5655
Width = 1395
End
Begin VB.CommandButton Command4
BackColor = &H00C0C0C0&
Caption = "暂停"
Height = 405
Left = 4680
Style = 1 'Graphical
TabIndex = 4
Top = 5655
Width = 1395
End
Begin VB.CommandButton Command3
BackColor = &H00C0C0C0&
Caption = "下一帧"
Height = 405
Left = 3180
Style = 1 'Graphical
TabIndex = 3
Top = 5655
Width = 1395
End
Begin VB.CommandButton Command2
BackColor = &H00C0C0C0&
Caption = "上一帧"
Height = 405
Left = 1665
Style = 1 'Graphical
TabIndex = 2
Top = 5655
Width = 1395
End
Begin VB.CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "播放"
Height = 405
Left = 165
Style = 1 'Graphical
TabIndex = 1
Top = 5655
Width = 1395
End
Begin ShockwaveFlashObjectsCtl.ShockwaveFlash Flash1
Height = 5055
Left = 600
TabIndex = 0
Top = 90
Width = 6540
Movie = ""
Src = ""
WMode = "Window"
Play = -1 'True
Loop = -1 'True
Quality = "AutoLow"
SAlign = "L"
Menu = -1 'True
Base = ""
Scale = "ShowAll"
DeviceFont = 0 'False
EmbedMovie = 0 'False
BGColor = ""
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
ForeColor = &H0080C0FF&
Height = 270
Left = 570
TabIndex = 6
Top = 5295
Width = 3600
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Timer1_Timer()
Flash1.Movie = App.Path & "\爱.swf"
Label1.Caption = "共" & Flash1.TotalFrames & "帧" & " 已播放到第" & Flash1.CurrentFrame & "帧"
End Sub
Private Sub Command1_Click()
Flash1.Playing = True
End Sub
Private Sub Command2_Click()
Flash1.Back
End Sub
Private Sub Command3_Click()
Flash1.Forward
End Sub
Private Sub Command4_Click()
Flash1.Stop
End Sub
Private Sub Command5_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -