|
Generate preloader (pre-loader) for flash movie automatically
using SWF Scout library
SWF Scout is capable of generating preloaders. You can use existing images as logo image for preloader. Generated flash movie:
'
VideoWithPreloader.vbs
you can find source code of this example along with required image,
sound and video files in
"Examples\More Examples\" sub-folder
W = 640
H = 480
Set
Movie = CreateObject("SWFScout.FlashMovie")
Movie.InitLibrary "demo","demo"
' Movie creating and setting
parameters
Movie.BeginMovie 0,0,W,H,1,12,6
Movie.Compressed = true
Movie.SetBackgroundColor 255,255,255
' adding image for preloader!
Image = Movie.AddImageFromFilename("swfscout_logo.jpg")
' adding preloader with
logo image
Movie.AddPreloader 0, 0,0,0,180,
0,255,0,30, "Loading (%d% completed)...", Image
Font = Movie.AddFont( "Arial",12,true,false,false,false,0) FontBig = Movie.AddFont("Arial",40,true,false,false,false,DEFAULT_CHARSET)
'//////////////////////////
' VIDEO
'/////////////////////////
Text = Movie.AddText2 ("Video",0,0,0,255,FontBig,
W / 2, 60,2)
Movie.PlaceText Text,Movie.CurrentMaxDepth
' place text
Video= Movie.AddVideoFromFileName("test.flv") Movie.FramesPerSecond= Movie.VIDEO_FramesPerSecond
Movie.PlaceVideo Video,Movie.CurrentMaxDepth
Movie.PLACE_SetTranslate 190,150
Movie.ShowFrame Movie.VIDEO_FrameCount
+ 10
Movie.EndMovie
Movie.SaveToFile "VideoWithPreloader.swf"
|
|
|
Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|