SWF Scout |
How to save images into single SWF file and how to use this file as a resource in the new flash movie using SWF Scout Download source code of this example: swfscout_create_images_library_and_use_library_in_new_swf.zip (433 KB) SWF file with image stored (SWF library):
New SWF that uses previous SWF and manipulates images from attached SWF library:
Source code: W = 640 ' // make a SWF library with images Set Movie = CreateObject("SWFScout.FlashMovie") For ImageIndex = 1 to 3 image = Movie.AddImageFromFilename("NewImage" &
CStr(ImageIndex) & ".jpg") Movie.PlaceSprite Sprite, Movie.CurrentMaxDepth Next Set Movie = nothing '////////////////////////// Set Movie = CreateObject("SWFScout.FlashMovie") Movie.AddExternalSWF "MakeImagesLibraryAndMakeSWFUsingThisLibraryFromExtFile_lib.swf", 1, true ' // seimResource = 1 '// now addding actionscript to place images at given X and
Y, using their names mcl_image1, mcl_image2 etc ' create a movieclip and attach image from library
Movie.EndMovie Movie.SaveToFile "MakeImagesLibraryAndMakeSWFUsingThisLibraryFromExtFile.swf" Download source code of this example: swfscout_create_images_library_and_use_library_in_new_swf.zip (433 KB) |
|
|
||