For those creating dynamic text fields in Flash it often comes as a surprise that dynamic text fields do not behave as expected when modifying the alpha parameter of it or it’s parent. Often even I forget that telling a movie clip to transition out based on a tween of its alpha property doesn’t modify the text field. Without getting into the details of why this occurs lets jump straight to one solution for quickly making the alpha property work, setting it’s Blend Mode!
The Quick Fix
- Import the BlendMode class
- Set the blendMode of your TextFields to Layer
this._panel.currentTimeTxt.blendMode = BlendMode.LAYER;
That is it!! Now you will be able to modify the alpha parameter of the field or it’s parents and the dynamic text fields will behave as expected.