# Alpha property does change textfield prop

**URL:** <https://forum.kirupa.com/t/alpha-property-does-change-textfield-prop/263609>\
**Category:** Uncategorized\
**Created:** [June 17, 2008, 6:24pm UTC](https://forum.kirupa.com/t/alpha-property-does-change-textfield-prop/263609 "2008-06-17T18:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsiege](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vsiege](https://forum.kirupa.com/u/vsiege)\
**Post date:** [June 17, 2008, 6:24pm UTC](https://forum.kirupa.com/t/alpha-property-does-change-textfield-prop/263609/1 "2008-06-17T18:24:40Z")

</div>

I’m switching the alpha property from 1 to 0 and back on an instance of a custom class that extends a sprite. The code works for the most part. The only thing that does not turn alpha 0 some textfields associated with buttons. I cant think of why the entire button can be alpha 0 and the textfield does not get affected. Any thoughts?

```auto
function bsRollOver(event:MouseEvent):void {
	if (menuCont.getChildAt(1).alpha > 0) {
		menuCont.getChildAt(1).alpha = 0;
	} else {
		menuCont.getChildAt(1).alpha = 1;
	}

}

```

I’m sure I’m missing simple =/

---

<div class="post-metadata">

**Author:** ![congyaan](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@congyaan](https://forum.kirupa.com/u/congyaan)\
**Post date:** [June 18, 2008, 2:05am UTC](https://forum.kirupa.com/t/alpha-property-does-change-textfield-prop/263609/2 "2008-06-18T02:05:56Z")

</div>

for the textfield if you set the property embedFonts to true then it can be alpha 0.
