|
SWF Scout |
Using MP3 sound file as a background in flash SWF movie generated by the
SWF Scout library
See also: How to create the flash movie with streaming mp3 audio Generated Flash movie with mp3 music:
VB source code: 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
Font = Movie.AddFont(
"Arial",12,true,false,false,false,0)
FontBig = Movie.AddFont("Arial",40,true,false,false,false,DEFAULT_CHARSET)
'//////////////////////////
' MP3
AUDIO
'/////////////////////////
Text = Movie.AddText2
("MP3 Audio Demo:",0,0,0,255,FontBig, W / 2, 60,2)
Sound = Movie.AddSoundFromFileName("bgmusic.mp3")
Movie.StartSound
(Sound)
Movie.SOUND_AutoLoop
= true
Movie.PlaceText
Text,Movie.CurrentMaxDepth '
place text
Movie.PLACE_FadeOut
2
Movie.ShowFrame
5
Text = Movie.AddText2
("bgmusic.mp3",0,0,0,255,FontBig, W / 2, 120,2)
Movie.PlaceText
Text,Movie.CurrentMaxDepth '
place text
Movie.PLACE_FadeOut
2
Movie.ShowFrame
80
Movie.EndMovie
Movie.SaveToFile
"Audio.swf"
download ZIP with all required files and VB script See also: How to create flash movie with streaming mp3 audio |
||
|
Copyright © ByteScout, 2003-2009. 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. |
|||