My problem is this:
First I have 3 namespaces:
package {
public namespace nsEspacioA = "El lugar A en el Espacio";
}
package {
public namespace nsEspacioB = "El lugar B en el Espacio";
}
package {
public namespace nsEspacioC = "El lugar C en el Espacio";
}
Second one class, with the sString01 variable declared in all of them:
package {
public class Clase01 {
nsEspacioA var sString01:String = "sString01A";
nsEspacioB var sString01:String = "sString01B";
nsEspacioC var sString01:String = "sString01C";
function Clase01() {
}
}
}
An finally the document class:
package {
import flash.display.Sprite;
public class DC extends Sprite {
private var cClase01:Clase01;
function DC() {
cClase01 = new Clase01();
trace(cClase01.nsEspacioA::sString01);
trace(cClase01.nsEspacioB::sString01);
/*trace(cClase01.nsEspacioC::sString01);*/
}
}
}
As is, it works; it returns the value of sString01 in every namespace, but the problem comes when I activate the third trace, because when I compile, in the output don’t appears anything. Perhaps the number of namespaces per variable is limited to 2 :stare:? Or maybe this could be a Flash bug?
Thanks for the help (and sorry for my english)