# Namespaces issue

**URL:** <https://forum.kirupa.com/t/namespaces-issue/266095>\
**Category:** flash\
**Created:** [July 16, 2008, 8:45am UTC](https://forum.kirupa.com/t/namespaces-issue/266095 "2008-07-16T08:45:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oxk4r](https://avatars.discourse-cdn.com/v4/letter/o/85e7bf/32.png) [@oxk4r](https://forum.kirupa.com/u/oxk4r)\
**Post date:** [July 16, 2008, 8:45am UTC](https://forum.kirupa.com/t/namespaces-issue/266095/1 "2008-07-16T08:45:03Z")

</div>

My problem is this:  
First I have 3 namespaces:

```auto

package {
   public namespace nsEspacioA = "El lugar A en el Espacio";
}

```

```auto
package {
   public namespace nsEspacioB = "El lugar B en el Espacio";
} 

```

```auto

package {
   public namespace nsEspacioC = "El lugar C en el Espacio";
} 

```

Second one class, with the sString01 variable declared in all of them:

```auto

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:

```auto
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)
