# createEmptyMovieClip and createTextField?

**URL:** <https://forum.kirupa.com/t/createemptymovieclip-and-createtextfield/220754>\
**Category:** flash\
**Created:** [March 28, 2007, 10:02pm UTC](https://forum.kirupa.com/t/createemptymovieclip-and-createtextfield/220754 "2007-03-28T22:02:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlavertue](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@nlavertue](https://forum.kirupa.com/u/nlavertue)\
**Post date:** [March 28, 2007, 10:02pm UTC](https://forum.kirupa.com/t/createemptymovieclip-and-createtextfield/220754/1 "2007-03-28T22:02:15Z")

</div>

[SIZE=1]Can createEmptyMovieClip and createTextField work nested… ?

I have the following:

[/SIZE][LEFT][SIZE=1]\*\*this.createEmptyMovieClip(“infoBox”, 1);  
infoBox.onEnterFrame = function() {  
this.createTextField(“infoText”, 1, 0, 0, 100, 100);  
infoText.text = “SOME RANDOM TEXT HERE”;  
delete this.onEnterFrame;  
};

\*\*But it doesn’t appear to be creating the text object.  
I do get the following when I list the variables… leading me to believe, it is there, in some respect… just not declared properly.  
\*\*

Level #0:  
Variable \_level0.$version = “MAC 8,0,22,0”  
Movie Clip: Target="\_level0.infoBox"  
Edit Text: Target="\_level0.infoBox.infoText"  
scroll = 1,  
htmlText = ,  
thickness = 0, textHeight = 0,  
antiAliasType = “normal”,  
filters = [object #1, class ‘Array’] [], password = false, embedFonts = false, tabIndex = undefined,  
type = “dynamic”,  
sharpness = 0, bottomScroll = 1, textColor = 0, multiline = false,  
maxscroll = 1, hscroll = 0, variable = null, restrict = null,  
selectable = true, backgroundColor = 16777215, html = false, background = false,  
maxhscroll = 0, styleSheet = undefined, border = false,  
autoSize = “none”,  
borderColor = 0,  
gridFitType = “pixel”,  
textWidth = 0, wordWrap = false, length = 0, condenseWhite = false,  
text = ,  
maxChars = null, mouseWheelEnabled = undefined  
\*\*[/SIZE][/LEFT]
