- Home
- Testimonials
- Purchase
- Developer Tools
- Desktop Utilities
- Download
- Support
- Blog
- Company
Tutorial: how to create flash slide show movie from JPG image files using SWF SlideShow Scout library and Visual Basic
Quick Start Guide:
How to create slide show SWF flash file in Visual Basic using SWF SlideShow Scout:
"Hello, World" example
"Hello, World" example
You can download the source code of this example here: swfslideshowscout_vb.zip
This guide will teach you how to create simple SWF flash animation using SWF SlideShow Scout library and Visual Basic
1) Install SWF SlideShow Scout library on your computer and run Visual Basic. Go to File and click New

The Project Wizard will appear:

2) Select Standard EXE project type and click Open to create a new project.
Visual Basic will generate new project called Project1 and will automatically open the main form of the generated project:
Visual Basic will generate new project called Project1 and will automatically open the main form of the generated project:

3) Click on Form1 surface and Visual Basic will show the code window for Form_Load event:

4) Now you have to add the code that will create SWF flash movie file using SWF SlideShow Scout library.
Here is the source code that you can simply copy and paste into Visual Basic:
Set SlideShow = CreateObject("SWFSlideShowScout.SlideShow")
' initialize library
SlideShow.InitLibrary "demo", "demo"
' initialize library
SlideShow.InitLibrary "demo", "demo"
SlideShow.BeginSlideShow 320, 240
' slide #1, show with "stetMosaicLarge" effect (11 = stetMosaicLarge), 1000 msec
SlideShow.AddSlideFromFileName "Slide1.jpg", 11, 1000
SlideShow.AddDelay 1000
' slide #2, show with "stetBlur" effect (6 = stetBlur), 1000 msec
SlideShow.AddSlideFromFileName "Slide2.jpg", 6, 1000
SlideShow.AddDelay 1000
' slide #3, show with "stetZoomCircle" effect (29 = stetZoomCircle), 1000 msec
SlideShow.AddSlideFromFileName "Slide3.jpg", 29, 1000
SlideShow.AddDelay 1000
' slide #4, show with "stetLiquid" effect (37 = stetLiquid), 1000 msec
SlideShow.AddSlideFromFileName "Slide4.jpg", 37, 1000
SlideShow.AddDelay 1000
' slide #5, show with "stetShuttersBias" effect (16 = stetShuttersBias), 1000 msec
SlideShow.AddSlideFromFileName "Slide5.jpg", 16, 1000
SlideShow.AddDelay 2000
' save to flash movie file
SlideShow.SaveToFile "HelloWorld.swf"
' free slideshow object
Set SlideShow = Nothing
This function will create slideshow SWF file "HelloWorld.swf" in the folder with VB project EXE
Hint:
You can simply copy the source code from the snippet above and then paste it in the Visual Basic code editor as it's shown on the screenshot below:
5) Press F5 to run the application (you can also use "Run" | "Start" menu command).

6) Visual Basic will run the application and application will generate flash slideshow file "HelloWorld.swf".
You can view generated flash movie (.SWF) using Internet Explorer or another application that is capable of viewing and playing of flash animations.
You can download the source code of this example here: swfslideshowscout_vb.zip
Filed in:
SWF SlideShow Scout SDK
Tutorials:


