Tag Archives: actionscript3

RegEx – search and replace

The problem is to search bit of text and replace any occurance of the searched string with something new, with RegEx class and built-in replace function of String class it is very easy.

Posted in actionscript, flash | Tagged , , , | Comments Off on RegEx – search and replace

The String’s replace method and ArgumentError: Error #1063: Argument count mismatch error

Hi, recently I have upgraded flash player (11.1.102.55), and suddenly found that one of my components was throwing following error: ArgumentError: Error #1063: Argument count mismatch on Main/removeLinkStyleClass(). Expected 0, got 6. at String$/_replace() at String/http://adobe.com/AS3/2006/builtin::replace() at Main/init()[…\bugs\string_replace\src\Main.as:27] at Main()[…\bugs\string_replace\src\Main.as:16] … Continue reading

Posted in actionscript, bugs, flash | Tagged , , , , , | 1 Comment

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 , , , , | 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 , , , , | 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 , , , , | Comments Off on ASDoc, ASDocr, documenting your code gotchas