# Duplicating & animating text boxes dynamically

**URL:** <https://forum.kirupa.com/t/duplicating-animating-text-boxes-dynamically/209783>\
**Category:** flash\
**Created:** [December 12, 2006, 12:35pm UTC](https://forum.kirupa.com/t/duplicating-animating-text-boxes-dynamically/209783 "2006-12-12T12:35:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [December 12, 2006, 12:35pm UTC](https://forum.kirupa.com/t/duplicating-animating-text-boxes-dynamically/209783/1 "2006-12-12T12:35:28Z")

</div>

Hi there, I am trying to make an application that will load XML data into a scrolling info bar and then continually scroll the information without a break (so there is no gap in the display).  
The textField and container movie clips are created dynamically and then animated once the XML has loaded. I am having problems though as when I choose to duplicate the MC that has the text loaded into it I can’t see the text. I have tried two methods of duplicating the movie clip:  
[AS]container.duplicateMovieClip(“container2”, this.getNextHighestDepth())  
[/AS]  
and  
[AS]duplicateMovieClip(container, “container2”, this.getNextHighestDepth());[/AS]  
but neither seem to work.  
I have attached the FLA so if someone could have a look and let me know how to get this scroller to work without a gap I would be really grateful.  
Many thanks in advance!  
🙂  
Schm
