I’m having a problem with masked text in Flash animation. I have a dynamic text field (lets say the name of that field is DTF) on the main timeline which is masked and when I send data to the text field using the client it works fine, but if I try to change that text in the external AS3 class (for example add a number at the end of the text - DTF.text += “3”; ) nothing happens. Without the mask, everything works normally, but with the mask, anything that I apply in the external class just doesn’t affect the DTF.
The problem is that the mask is a rectangle that changes its size in every frame. I’ve tried creating a movie clip on the main timeline and using it as a mask, but it didn’t work. I don’t know how to do that from the class.
You should create a rectangle and change its size with a tween.
Also it’s a good practice to set both the masked movie clip and the mask as cached bitmap
That‘s not true, I do that every day. I downloaded your files, but did not get a clue, what is wrong. But probably you should try with a rectangle and use a motion tween to animate it, so that it is a single object changing over time.
And by the way: It‘s a simple wipe, that can be done by moving a rectangle from outside the stage and back, I have no idea, why you want to do it as complicate as possible.