📄 form1.frm
字号:
VERSION 5.00
Object = "{D27CDB6B-AE6D-11CF-96B8-444553540000}#1.0#0"; "SWFLASH.OCX"
Begin VB.Form Form1
BackColor = &H00000000&
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "暂停"
Height = 495
Left = 2760
TabIndex = 2
Top = 2040
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "调入Flash动画"
Height = 495
Left = 600
TabIndex = 1
Top = 2040
Width = 1215
End
Begin ShockwaveFlashObjectsCtl.ShockwaveFlash ShockwaveFlash1
Height = 2895
Left = 960
TabIndex = 0
Top = 120
Width = 2895
Movie = ""
Src = ""
WMode = "Window"
Play = -1 'True
Loop = -1 'True
Quality = "AutoLow"
SAlign = ""
Menu = -1 'True
Base = ""
Scale = "ShowAll"
DeviceFont = 0 'False
EmbedMovie = 0 'False
BGColor = "000000"
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
ShockwaveFlash1.Movie = App.Path & "\cfan.swf" ' 读取同一目录下的Flash动画文件
Command1.Enabled = False
End Sub
Private Sub Command2_Click()
If Command2.Caption = "暂停" Then
ShockwaveFlash1.Playing = False ' 停止动画
Command2.Caption = "继续"
Else
ShockwaveFlash1.Playing = True ' 继续动画
Command2.Caption = "暂停"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -