# onTheFly \[.as\] textfield

**URL:** <https://forum.kirupa.com/t/onthefly-as-textfield/274390>\
**Category:** flash\
**Created:** [October 29, 2008, 12:48pm UTC](https://forum.kirupa.com/t/onthefly-as-textfield/274390 "2008-10-29T12:48:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [October 29, 2008, 12:48pm UTC](https://forum.kirupa.com/t/onthefly-as-textfield/274390/1 "2008-10-29T12:48:24Z")

</div>

ok, I have to make everything in my movie SuperFly

I’m creating a background MC, then sticking a textfield above it… in thoery.

**All I get is the background MC.** As I see it “clip” depth =1, “blogText” depth =2;

BTW: This is in the crazy world of class files.

Thanks for insight.😑

[AS]  
for (var j = 0; j\<node.childNodes[0].childNodes.length; j++) {  
blog[j] = node.childNodes[0].childNodes[j].attributes.text;  
[//viral.showMC.reader](https://viral.showMC.reader)  
var target = viral.showMC.reader.createEmptyMovieClip(“zBut”+j,j)  
var clip:MovieClip = drawSquare(target, 1 , 0xD3DCE7, 0, 0, 174.4, 22.0);

//  
trace(“T\_”+target)  
target.createTextField(“blogText”,2,10.8,2.0,240.3,19.6);  
target.blogText.text = blog[j];  
target.blogText.autoSize = true;

var myFormat = new TextFormat();  
myFormat.color = 0xff0000//333333;  
myFormat.font =“Arial”;  
myFormat.size =12;  
target.blogText.setTextFormat(myFormat);  
}  
[/AS]
