Sample: SWFFileInfo.vbs - reading information about existing SWF file
Submitted by eLenka on 21 April, 2011 - 12:27
This sample shows reading information about existing SWF file (width, height, FPS, number of frames, SWF format version) using SWF Scout SDK.
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.
Example below will read information about shapes.swf
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
Download source code: