Ruben’s blog

Ruben Swieringa on Actionscript and a whole lot of other stuff..

Month: April, 2007

StateManager

For an AS3 project I’m working on I needed to know whether or not a UIComponent had passed a certain state (for example childrenCreated or initialize). Rather than overriding the corresponding protected methods I wrote a (really) simple class called StateManager that lets you make inquiries about any UIComponent that has been registered with the [...]

Why combining RichTextEditor and StyleSheets is a pain

A while ago Maikel pointed out to me that styling the htmlText in a RichTextEditor is a real pain. This is mainly because the RTE component uses TextFormat to style its textual content, and Flex does not like the thought of the TextFormat and StyleSheet classes combined applied on textfields (it throws a runtime error). [...]

HTMLStyle

This is a component I developed for the sake of simplifying the process of formatting html-text in Flex. Check it out: Demo Source Documentation HTMLStyle works pretty much the same as the tag and is also applicable in Actionscript code. Used in mxml this is the simplest form of how the component can be used: [...]

CSSLoader updated

For a component I’m working on I made some minor changes and additions to the CSSLoader classes. Demo Source Documentation I removed the ability to include prefixes in your CSS files (like “mx:Button”) since there was no way that I could think of to check which prefix an mxml tag has. The prefix feature was [...]

Namespaces in Actionscript3

For a while now, I’ve been thinking about how to grant access to certain classes for certain members of another class, while at the same time not making your members accessible to any class (i.e. public). Then I bumped into this article on LiveDocs about custom namespaces. If you’re unfamiliar with the matter it’s definitely [...]