Posted by Bart Claessens
on November 25, 2008
QuickTips /
3 Comments
Today I stumbled upon the following problem while parsing an xml: I tried to parse an attribute of an XML node which contained ‘\n’-characters and tried to put this parsed text into a dynamic text field on the stage.
Guess what, instead of parsing ‘\n’ to a newline, AS3 showed me the ‘\n’ in my text. This is not as I had hoped.
You can fix this very easily by Continue reading…
Tags: carriage return, newline, parsing, tab, w3schools, xml
Posted by Bart Claessens
on November 25, 2008
QuickTips /
No Comments
If you feel like your built-in iSight Macbook Cam is not working correctly when you are visiting a Flash website or viewing a Flash application, you are pretty much wrong my friend.
Ok, I have to admit, it’s a kind of hidden but you’ll have to change a small option to get it working.
Here’s a little walkthrough:
Continue reading…
Tags: macbook, not working, settings, webcam
Posted by Bart Claessens
on November 21, 2008
QuickTips /
No Comments
Did you know that casting a String to a Number using the ‘as’ operator returns 0 instead of the correct number? Use the Number() constructor to cast it correctly. The same applies for ‘int’ and ‘uint’.
Continue reading…
Tags: casting, int, not correct, Number, uint, zero
Posted by Bart Claessens
on November 21, 2008
ActionScript 2,
Flash /
No Comments
From time to time some of us still have to code in oldskool ActionScript 2. A few days ago a colleague asked me for a function for trimming ‘new line’ (\n), ‘carriage return’ (\r) characters, spaces, …
So I ended up searching my archives for a code snippet to archive this functionality and look what I found:
Continue reading…
Tags: ActionScript 2, ascii, carriage return, newline, remove characters, trim