January 2025 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
Author Archives: Łukasz Grela
Rectangle class, equals method returns incorrect value
Hi, recently I’ve used Rectangle’s equals() method and found that it incorrectly returns false when both rectangles are the same. Problem occurs when any of the properties of the Rectangle are NaN (not a number).
Posted in actionscript, bugs, flash
Tagged actionscript3, equals, NaN, rectangle, snippets
1 Comment
[Resolved] TextField, StyleSheet and problems with bold, italic and underline tags.
Hi, I’ve found a problem with a TextField rendering HTML tags. The problem manifests itself with bold, italic and underline style being applied to whole text soon after respective closing tag is somehow malformed. Here is the scenario:
Posted in actionscript, bugs, flash
Tagged actionscript3, Bug#2931507, htmlText, StyleSheet, TextField
Comments Off on [Resolved] TextField, StyleSheet and problems with bold, italic and underline tags.
ASDoc, ASDocr, documenting your code gotchas
Have you tried to generate documentation out of your code? I bet you did, and I bet that like me you have found many obstacles to succeed. Here I will describe how I finally made it, I hope you will … Continue reading
Posted in actionscript, flash
Tagged -package-description-file, actionscript3, asdoc, ASDocr, documentation
Comments Off on ASDoc, ASDocr, documenting your code gotchas
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