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).

Continue reading

Posted in actionscript, bugs, flash | Tagged , , , , | 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:
Continue reading

Posted in actionscript, bugs, flash | Tagged , , , , | 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 find it useful.
Continue reading

Posted in actionscript, flash | Tagged , , , , | 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 there is a different syntax to compare null values. The problem was in comparing values that sometimes can be null.

The idea was to get how many empty values I have in the database, the result was always 0. I have start with plain text query (no parameters), but it didn’t worked as I’ve found on the SQLite page you can’t just use equal to compare NULL values, you have special syntax IS NULL or IS NOT NULL.

Continue reading

Posted in actionscript, air for android, flash, SQLite3 (in AIR) | Tagged , , , , , , , , , , | 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:
Continue reading

Posted in actionscript, flash | Tagged , , , | Comments Off on useful use of switch block