Browsing Posts tagged as3

A quick tip: (after spending an hour banging my head on the wall): If you are to have PHP talk to Flash and pass binary data through a URLLoader, keep one thing in mind; The PHP file has to be saved in ANSI encoding. Saving the file in UTF-8 encoding will only give you headaches!

It’s typical, that every time i wanted to add a custom right click menu to my flash apps, i just googled for it and pasted in the usual code. It just occurred to me that these 5-10 lines of independent code don’t have to (and shouldn’t) be part of the main code of my projects. [...]

After i installed Flash CS4, the first project i wanted to import and “upgrade” from CS3 was of course our homepage, www.locus-delicti.com. But when i did it and hit Ctrl+Enter all kinds of weird stuff happened and items started flashing here and there. That was a while ago, so now that i had some free [...]

I’ve had a script in my “script tests” library for a long time now that used the noise() method of the BitmapData Class on EnterFrame to create a noisy image that somehow resembled the static when we have bad signal on TV. However it just didn’t seem complete. Flash Player 10 came with some major [...]

After searching in vain a whole day for a dateChooser/dateField/calendar component for Flash CS3/CS4 that would work with Actionscript 3 (something like the one there was for AS2) i decided to follow a different route. Since Flex Builder has exactly what i was looking for i decided to import it. The operation proved to be [...]

Working on dreamgrove.org i had to turn a string of space-separated words into a word list, an array containing these words, so that when someone searches for “red dress” i could get results using the String.search() method even when these words are not adjacent to each other (eg. “… her dress was red”). So i [...]

AS3 Basic Fractal

No comments

[flash http://blog.locus-delicti.com/wp-content/uploads/as3fractal.swf w=500 h=500] (note: reduce iterations if it runs slowly) A very simple fractal, consisting of straight lines, each positioned at the center of the other. Found lying at the actionscript tests folder. The code looks pretty clean. Get the source code here.