A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: how to populate txt within movieclip created using duplicatemovieclip command

Threaded View

  1. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    You can try something like this, its easy enough to decipher

    PHP Code:
    var Names:Array = ["first""crap""fart""idiot""smelly"];
    var 
    NumberRequired 5;

    for (var 
    0NumberRequiredm++)
    {
        
    duplicateMovieClip("cat""cat" mthis.getNextHighestDepth());
        
    this["cat" m]._y 50 * (1);
        
    this["cat" m]._x 100;
        
    this["cat" m].name_txt.htmlText Names[m];
        
    this["cat" m].onRollOver = function(){
            
    trace(this._name " - " this.name_txt.htmlText);
        };

    Last edited by fruitbeard; 01-18-2013 at 06:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center