Tag Archives: styleNames

The parseCSS of StyleSheet silently fails

Hi, when you use the parseCSS method of the StyleSheet, you will have no indication about success of the invocation. When passed string contains invalid CSS text then this method will silently fails. The workaround is to compare the lenght … Continue reading

Posted in actionscript, bugs, flash | Tagged , , , | Comments Off on The parseCSS of StyleSheet silently fails

StyleSheet’s method getStyle doesn’t return null for non-existing style

I have just learned that getStyle() method of flash.text.StyleSheet class doesn’t return null value when requested style doesn’t exists. Documentation states that it should, but in fact it returns empty object. Which could be fine for tests but you could … Continue reading

Posted in actionscript, bugs, flash | Tagged , , , , , , , | Comments Off on StyleSheet’s method getStyle doesn’t return null for non-existing style