I was trying to put a 'path ' in an Array
// I Create the Array
var matrizFunc:Array=new Array();
// put What a need inside it
matrizFunc  = 'Tela.AreaInterativaLogin.entrar';
//I call the Array element to work with teh Listener
It doens't work. Any clue?
tks a lot!
You say that this string is a path. What do you mean by that? As far as the array is concerned, 'Tela.AreaInterativaLogin.entrar' is a string and doesn't really relate to much of anything.
What is it that you intend to accomplish? Are you going to display this string on the stage somehow?
Well, there are some main movieclips in my project and I've created many external functions to attach listeners inside them. I want to simplify my code and in order to do that I m trying to swap Tela.AreaInterativaLogin.entrar by matrizFunc  , Tela.AreaInterativaLogin.out by matrizFunc  and so on. When I put matrizFunc [n] and .addEventListener(MouseEvent.CLICK,TelaMenuInicial) together I get an error.
tks a lot.
OK, If the movieClip "Tela" is at the same level as the code that you are writing, then you just need to remove the quotation marks from this line: matrizFunc  = 'Tela.AreaInterativaLogin.entrar';
That path describes an object in Actionscript and so it is not a string.