2 Replies Latest reply on Jun 11, 2008 9:35 AM by kaiseral

    Using attachMovie to load an external file

    kaiseral
      Is this possible?

      1. Create an empty movie clip called clip_1
      2. Load an external movie into clip_1
      3. Create another empty movie clip called clip_2
      4. Use attachMovie to attach clip1 to clip_2

      I don't get any errors, but it doesn't seem to work.

      _root.createEmptyMovieClip("clip_1",_root.getNextHighestDepth());
      _root.loadMovie("whatever.swf",_root.clip_1);
      _root.createEmptyMovieClip("clip_2",_root.getNextHighestDepth());
      _root.clip_2.attachMovie(clip_1,"new_clip",_root.getNextHighestDepth());

      Since clip_1 was created at runtime, is there anyway to dynamically assign it the "Export for Actionscript" property and give it a linkage identifier?