SWF Scout |
How to replace movieclips in the existing flash movie to movieclips loaded from external SWF file using SWF Scout library Download source code of this example (including source FLA and
SWF files): Source SWF template MyTemplate.swf (compiled from MyTemplate.fla):
Red square is a movieclip with a name "image1" We will replace "image1" movieclip with
SWF movieclip from shapes.swf
file Source code (ProcessSWFTemplate_ReplaceSprites.vbs): Set Movie = CreateObject("SWFScout.FlashMovie") Movie.InitLibrary "demo","demo" Movie.BeginMovieFromTemplate "MyTemplate.swf",true Movie.AddTemplateRule_Text "REPLACEME1","SUCCESSFULLY
REPLACED",true Movie.EndMovie Movie.SaveToFile "ProcessedTemplate_ReplaceSprites.swf" Produced file (ProcessedTemplate_ReplaceSprites.swf)
Download source code of this example (including source
FLA and SWF files): |
|
|
||