This sample source code shows how to convert flash (.swf) movie into a video file using Bytescout SWF To Video SDK in Visual Basic .NET.

The SDK provides set of methods and properties to convert flash movies into video (compressed with the selected video compression codec, one of the available on the computer).

Imports BytescoutSWFToVideoLib

Module Module1

    Sub Main()

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

        ' Set debug log

        ' Register SWFToVideo
        converter.RegistrationName = "demo"

        converter.RegistrationKey = "demo"

        ' Add SWF file and set its output filename
        converter.SetMovie("SlideShowWithEffects.swf", "result.avi")

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

        ' Run conversion

        ' Open the result movie in default media player

    End Sub

End Module