Skip to main content
rjoshicool
Inspiring
February 1, 2010
Question

Multiple instances of loaded SWF

  • February 1, 2010
  • 1 reply
  • 264 views

I am loading a set of SWFs into my application. These are loaded as a list of thumbnails. I want to add a loaded SWF on the stage when the thumbnail corresponding to it is clicked. How can I do this?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 1, 2010

add each thumb loader to a movieclip and assign each movieclip your mouse listeners and a property so it knows which swf should be loaded when it is clicked.  add that info to your listener function:

function thumbClickF(e:Event){

yourLoader.load(new URLRequest(MovieClip(e.currentTarget).swfURL));

}