Skip to Content »

FlashApe » Attaching clips from loaded movies

 Attaching clips from loaded movies

  • July 22nd, 2004
  • 5:06 pm

Ran into a wierd flash issue today. apparently, you can’t attach a movie clip symbol from the library to a loaded movie. So, say you have a main swf, named “main.swf”, and a movie you are going to load into that called “second.swf”, into a container clip on stage named “container_mc”. This won’t work:

bc[as]. this.container_mc.loadMovie(”second.swf”);
var newClip = this.container_mc.attachMovie(”mainLibraryClip”, “mainLibrariyClip_mc”, 1);

it WILL work, however, if the symbols you want to attach are in the loaded swf’s library. I guess you could use shared libraries if there were symbols that you intended to use from the main.swf across multiple loaded swf’s (although i havent tried that yet).

Free Movies Free Movies

Want your say?

* Required fields. Your e-mail address will not be published on this site


You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>