December 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Tag Archives: actionscript3
SQLite – compare null values
Hi, this is a quick post describing issue I have found when using SQLite in flash. I’ve tried to fetch some rows using following snippet, but couldn’t get correct results. Then after digging on the net I have found that … Continue reading
Posted in actionscript, air for android, flash, SQLite3 (in AIR)
Tagged actionscript, actionscript3, air, air for android, flash, IS NULL, SQLConection, SQLError, SQLite, SQLStatement, SQLStatement parameters
4 Comments
useful use of switch block
Hi, recently I have browsed through wonderfl.net and found unknown to me but useful use-case of switch block. The switch is selection control block and usually is used as follows:
Posted in actionscript, flash
Tagged actionscript, actionscript3, snippets, switch
Comments Off on useful use of switch block
SQLError: ‘Error #3132: Data type mismatch’,details:”,operation:’execute’
Hi, I have noticed weird error: SQLError: ‘Error #3132: Data type mismatch’,details:”,operation:’execute’ this only happens in certain situations, this is how you can reproduce it:
Posted in actionscript, bugs, flash, SQLite3 (in AIR)
Tagged actionscript3, Data type mismatch, Error #3132, SQLError, SQLite, SQLStatement parameters
3 Comments
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