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
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
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();