November 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
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 actionscript3, RegExp, snippets, String#replace
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 actionscript3, Argument count mismatch, ArgumentError, bugs, Error #1063, flash
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 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