# Flash Bug? Masked Dynamic Text not working

**URL:** <https://forum.kirupa.com/t/flash-bug-masked-dynamic-text-not-working/217870>\
**Category:** flash\
**Created:** [March 2, 2007, 4:03pm UTC](https://forum.kirupa.com/t/flash-bug-masked-dynamic-text-not-working/217870 "2007-03-02T16:03:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kill\_robot\_kill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kill_robot_kill/32/359_2.png) [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Post date:** [March 2, 2007, 4:03pm UTC](https://forum.kirupa.com/t/flash-bug-masked-dynamic-text-not-working/217870/1 "2007-03-02T16:03:19Z")

</div>

Ok, so I have a very very simple script to change the value of my textbox that is inside a MC called ‘two’.  
I want to mask that textbox, so I did indeed embed the font that’s not the problem. When I make the textbox layer a ‘masked’ layer with the mask layer above it, the code stops working UNTIL I put a ‘fake’ variable into the ‘variable’ field of the text properties menu. Then it works, but I am not calling that variable. Also it works fine as is, when the layers are not masked, only when it becomes a masked layer does it stop working.

What’s up with that?

[AS]var myCount:Number = 0;  
two.txtLetter.text = myCount;  
function switchLetter() {  
if (myCount \< 9) {  
myCount++;  
} else {  
myCount = 0;  
}  
two.txtLetter.text = myCount;  
trace(myCount);  
}[/AS]
