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
Category Archives: actionscript
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
constructor as helper in clone method implementation
Hi, if you wanted to implement the clone method to create duplicates of your class you certainly face the problem in extending class where you had to duplicate the code just because the new instance should be type of the … Continue reading
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
Hi, today I’ve come across the “Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.” error, but becuase (as always) the Flash Player errors are really stripped from any information that might help to pint point the problem I couldn’t … Continue reading
Posted in actionscript, flash
Tagged Error #2035, Error #2044, htmlText, img tag, Unhandled IOErrorEvent
Comments Off on Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
The parseCSS of StyleSheet silently fails
Hi, when you use the parseCSS method of the StyleSheet, you will have no indication about success of the invocation. When passed string contains invalid CSS text then this method will silently fails. The workaround is to compare the lenght … Continue reading
Posted in actionscript, bugs, flash
Tagged flash css, parseCSS, styleNames, StyleSheet
Comments Off on The parseCSS of StyleSheet silently fails
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