“Hello, World!”example
You can download the source code of this example here: swfslideshowscout_javascript.zip
SWF SlideShow Scout library can be used in scripting languages that support ActiveX/COM objects: Javascript, VBScript, Visual Basic scripted language. This page will demonstrate how to make SWF slideshow flash animation movie using Javascript and SWF SlideShow Scout library.
var SlideShow = WScript.CreateObject(‘SWFSlideShowScout.SlideShow’);
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 slideshow to file
SlideShow.SaveToFile(‘HelloWorld.swf’);