Got a question

I am trying to setup a custom class that has a default alpha value of 0, for example:

package{

   public class Something extends MovieClip{

      public function Something(){
         this.alpha = 0;
      }
   }
}

But it doesn’t want to work. When I add the child to the stage its alpha is 1. I think I briefly remember running into this issue in AS2. My guess is it has something to do with the flash player overriding certain properties of a display object when it is initially placed on the stage. My reasoning for this is because once the object is placed on the stage, my class has no issues changing the it’s own alpha property, like so:

package{

   public class Something extends MovieClip{

      public function Something(){
      }

      public function makeVisible(){
         this.alpha = 1;
      }
   }
}

This isn’t a big deal, just wondering if someone had an explanation. :thumb2: