October 26, 2004

Extending CSS capablities in Macromedia Flash Player

I am going to give a simple example using TextField.StyleSheet.transform(..). This is used to extend the CSS parsing cabalitity.

For example, "leading" is not parsed by CSS parser in Flash Player. Let's make an example for the same.

First we would extend TextField.StyleSheet by creating a subclass(StyleSheetEx) and overriding it's transform method.

Note:Since MT Code Beautifier is not working on my blog, please download these files and look at the code.
You can also view this example running.

Create above files with code and test it. I hope, "leading" works for you also. I know there could be many better ways, as I can see many enahancements in the above code. Please feel free to suggest.

Posted by Abdul Qabiz at October 26, 2004 07:30 AM
Comments
Post a comment









Remember personal info?