1 person found this helpful
use the createEmptyMovieClip() method of movieclips.
Hi kglad, thanks for the reply. I'm not sure createEmpty() is what I need in this situation, however. I'm sorry, I didn't explain myself very well.
I have a movie clip already built with specific text areas and functions in it. This movie clip will hold the title of the article and a short piece of text from the article. At the moment I have only one movie clip (therefore only one article) on the page because I want flash to add another movie clip for each new article. So if there is 5 articles in the XML document Flash will use 5 of the movie clips I designed to display the articles.
Does that make any more sense?
What you want to do is add a linkage to the article template movieclip in the library so that you can add a copy of it every time you have a new article to put in it. To add the linkage, right click on it in the library and select Linkage. Check the box that say export for actionscript (and the one for first frame) and then enter a name for this object in the linkage textfield.
Whenever you want to add a new one you use the attachMovie() function using the linkage name you assigned
Thanks Ned, that's exactly what I needed - much appreciated!