SWF Scout |
Reading information (width, height, fps, number of frames, swf
format version) using SWF Scout library
Use SWFFileInfo object interface to get information about existing SWF file. This can be useful if you want to use external SWF to create new flash movie Download ZIP with
the source code for this example (swfscout_swffileinfo.zip, 94KB) SWFFileName = "shapes.swf"
Set
SWFFileInfo = CreateObject("SWFScout.SWFFileInfo")
SWFFileInfo.LoadFile SWFFileName
FPS = SWFFileInfo.FPS Height = SWFFileInfo.YMax - SWFFileInfo.YMin
Width = SWFFileInfo.XMax - SWFFileInfo.XMin
FramesCount = SWFFileInfo.FramesCount
Version = SWFFileInfo.Version
MsgBox "FileName=" & SWFFileName &vbCRLF & "Version=" & CStr(Version) &vbCRLF & "FPS=" & CStr(FPS) &vbCRLF & "Width=" & CStr(Width) &vbCRLF & "Height=" & CStr(Height) &vbCRLF & "FramesCount=" & CStr(FramesCount) &vbCRLF |
|
|
||