Getting Started in Visual Basic .NETBytescout SWF To Video SDK

This sample for Visual Basic .NET shows how to use SWF To Video SDK to convert SWF into a video (WMV or AVI).

VB
Imports BytescoutSWFToVideoLib

Module Module1

    Sub Main()

        ' Create an instance of SWFToVideo ActiveX object
        Dim converter As New SWFToVideo()

        ' Set debug log
        'converter.SetLogFile("log.txt")

        ' Register SWFToVideo
        converter.RegistrationName = "demo"
        converter.RegistrationKey = "demo"

        ' Set input SWF file
        converter.InputSWFFileName = "SlideShowWithEffects.swf"

        ' Set output WMV or AVI video file
        converter.OutputVideoFileName = "result.wmv"

        ' Set output movie dimensions
        converter.OutputWidth = 640
        converter.OutputHeight = 480

        ' Run conversion
        converter.RunAndWait()

        ' Open the result movie in default media player
        Process.Start("result.wmv")

    End Sub

End Module