Posts Tagged ‘actionscript’

20081021 Embedding fonts in ActionScript 3, using Flex SDK

Say you have a class and you want to use an embedded, non-system font in the class. That way you can rotate, scale, change alpha and apply filters to the text. And this is how it would look like, roughly: public class MyClass extends Sprite {         [Embed(source="./../assets/MyFontLightItalic.TTF", fontFamily="MyFontFamily", fontWeight= "light", fontStyle [...]

20080717 How to crash Flash Player in few lines

I tried this with the stand-alone Flash Player, versions 9.0.45 and 9.0.124. I was hoping to crash the browser too when executing the malicious code inside a browser but that didn’t work :-/ Anyway this is how you would proceed if you wanted to crash your Flash Player. Or this is what you shouldn’t do [...]

20070924 Security sandbox violation? How come!

I’ve received a few error reports on a for-fun-only flash thing/experiment/joke I did some time ago, the next captcha generation for myspace forms. At first I thought it had been my fault, due to my inexperience in flash, but after having been working more time with sounds in flash, I found the problem is not [...]

20070713 Thumbs up for FlashDevelop

Some weeks ago I said bye bye to php, html, css and all those pain inducing drugs for a while, and switched to work mainly with Flash. At the beginning I was using only the Flash IDE and external editors, as I had done since ActionScript2 appeared on stage (pun!!). But I still had a [...]

20070703 VerifyError: Error #1025: An invalid register 1 was accessed

If you need to parse some XML with namespaces in ActionScript 3 you may find this error quite soon: VerifyError: Error #1025: An invalid register 1 was accessed It all comes because of this line: default xml namespace = myXML.namespace(); It is needed in order to access the values in the namespaced value so removing [...]