# Trouble with calling textfield

**URL:** <https://forum.kirupa.com/t/trouble-with-calling-textfield/326891>\
**Category:** flash\
**Created:** [January 19, 2012, 4:24pm UTC](https://forum.kirupa.com/t/trouble-with-calling-textfield/326891 "2012-01-19T16:24:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BatteauProducts](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@BatteauProducts](https://forum.kirupa.com/u/BatteauProducts)\
**Post date:** [January 19, 2012, 4:24pm UTC](https://forum.kirupa.com/t/trouble-with-calling-textfield/326891/1 "2012-01-19T16:24:21Z")

</div>

So I’m very new to AS3.0, having programmed in AS2.0 a lot but want to stay with the times.

So the problem I have is calling a dynamic textfield which is embeded movieclip.

There are 3 movieclips already placed on the stage

Namely

```auto
var music_slider_mc:MovieClip = new MovieClip();
var effect_slider_mc:MovieClip = new MovieClip();
var speech_slider_mc:MovieClip = new MovieClip();

```

Each of the movieclips contains several layers and one of the is called header\_txt.  
But it can’t seem to find the proper syntax to call these textfields.

This is the code I am using at this moment

```auto
import flash.display.MovieClip;
import flash.text.TextField;
import flash.events.Event;

var music_slider_mc:MovieClip = new MovieClip();
var effect_slider_mc:MovieClip = new MovieClip();
var speech_slider_mc:MovieClip = new MovieClip();
var header_txt:TextField = new TextField();
var _clips:Array = new Array(music_slider_mc,effect_slider_mc,speech_slider_mc);

function Initiate():void{
    for (var i:Number = 0; i < _clips.length; i ++){
        _clips*.header_txt.text = "hello"+i;
       this.addChild(_clips*);
    }
}
Initiate();

```
