Home

SWF Scout

SWF Scout screenshot (click to enlarge)



SWF Scout ActiveX/NET library

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


Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials |  

ByteScout, 2003-2008. All other company and product names may be trademarks of their respective companies. Privacy Statement