Return to Kroll Web Design home page Flash tutorials

« Return

ActionScript 2

loadMovie for importing external SWF files - this example uses an empty movie clip for placeholder

Download the FLA file


In this example, the placeholder clip has no content. It exists in the library, and there's an instance of it on the stage, but there's no blue rectangle in it like in the prior example.

button1_btn.onRelease = function()
   {
	   loadMovie("movies/swf/swf1.swf", placeholder_mc);
   }


   button2_btn.onRelease = function()
   {
	   loadMovie("movies/swf/swf2.swf", placeholder_mc);
   }


   button3_btn.onRelease = function()
   {
	   loadMovie("movies/swf/swf3.swf", placeholder_mc);
   }