2 Replies Latest reply on Mar 22, 2008 10:34 AM by kglad

    Dynamic library?

      Is it possible to dynamically add movie clips to your library with AS? I basically need to take .pngs (1.png, 2.png, ..., n.png) and add them to their respective frames in a movie clip--1.png goes on frame 1, 2.png on frame 2, etc.

      Not that it matters, but the reason I need to do it this way is I'm loading a tile set and I need to splice the image into tiles, then put each tile on one frame of the tile_mc movie clip.

      Any ideas?
        • 1. Re: Dynamic library?
          rlc5611 Level 1
          If there is a reason that you cannot have them already in your library where you could use attachMovie to attach them to your tiles, then you can use MovieClipLoader class to attach external PNG files dynamically. Using loadMovie is also a poor second choice. Look either one up in the help files. They are well documented.
          • 2. Re: Dynamic library?
            kglad Adobe Community Professional & MVP
            and the answer to your question is no, you cannot add anything to your library outside of the authoring environment with as.