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 , , , | 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

Posted in actionscript, flash | Tagged , | 2 Comments

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 , , , , | 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 , , , | 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 , , , , , | 1 Comment