I just started to use a lot the lessrain.lib.text.DynamicTextField to handle different types of textfields and textformatting.
There are some cases where I have to use asfunction together with the Proxy Class in order to make a call back to the class instance.
When a Class uses a TextField by composition the asfunction call is going to scope to the TextField’s host MovieClip. With the help of the Proxy we can resolve this , calling the asfunction on the parent of the host mc.
I feel like posting an example of how to use the DynamicTextField Class, the Proxy Class and asfunction in one single sceneario.
Read the rest of this entry »