Tutorial: how to create flash slide show movie from JPG image files using SWF SlideShow Scout library and Visual Basic - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

Tutorial: how to create flash slide show movie from JPG image files using SWF SlideShow Scout library and Visual Basic

  • Home
  • /
  • Articles
  • /
  • 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
 

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
 
Visual Basic file menu new command
 
The Project Wizard will appear:
New Visual Basic project wizard
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:
New project generated by Visual Basic
 
3) Click on Form1 surface and Visual Basic will show the code window for Form_Load event:
Visual Basic form load event code handler auto generated
 
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”

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). 
 
Run project button on toolbar
 
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

Tutorials:

prev
next