Monthly Archives: January 2011
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 actionscript3, ASl-198, BUG, flash, FP-113, getStyle, styleNames, StyleSheet
Comments Off on StyleSheet’s method getStyle doesn’t return null for non-existing style
SQLite: Calculate difference between datetime fields
If you want to easily get elapsed time between datetime fields in SQLite you may want to take a look at following snippet: Table some_table contains 2 columns named start and finish both datetime type. Result will contain value in … Continue reading
Posted in actionscript, flash, SQLite3 (in AIR)
Tagged actionscript3, cast(), flash, select, SQLite, strftime
1 Comment
AIR and SQLite transaction issues
Nice thing about SQLite in Adobe AIR are transactions, you start them with begin method of SQLConnection instance and then finish with rollback or commit methods. Problem occurs when you start transaction with default arguments and then try to stop … Continue reading