I've played around with Circle Split some more. Now you can add an image url parameter to the swf. This will make the swf use that image as the source of the colors, rather than random ones. The best thing to do is to see it in action:
I've also uploaded the source. The files you need are here:
The code is pretty self explanatory and well commented, but shoot me any questions you may have. To get this up and running, put these class files in a directory named "ae" in your as3 classpath. Use CircleSplit as the document class. I just created an empty FLA, 1024x1024, 30 fps, and a black background. This code is public domain, so feel free to use and modify!Read more…
After seeing this flash doohickey and playing with it for a while, I noticed that it slows to a crawl and becomes unresponsive simply due to the sheer complexity of it all. I immediately saw some ways to optimize what it is doing, as it uses a rather simple approach as to what it's doing.
After a couple hours of hacking, I came up with this:
Graphics were cached to a single bitmap, and lighter-weight sprites were used instead of buttons. It still was a bit slow once you got deep into it. This was simply due to the thousands of mouse event listeners flash player had to keep track of. AFter a few more hours I have this:
It uses a tree structure and a divide-and-conquer algorithm to delegate mouse events to the correct circle. Instead of having a O(n) search every mouse move, it now has a O(log(n)) search. It's very responsive, even with thousands of circles. I'll post the source later.
Have fun playing. And yes, it is possible to win...Read more…
Has it really been two and a half years since I updated this site? And has it really been 5 years since I was actively animating? I guess it has. So much has happened in those years. Let's see, I have....
- Learned how to be a skilled programmer and software engineer
- Made lots of new friends and learned a lot about life, the universe, everything.
- Graduated with Honors with a degree in Computer Science
- Met an awesome girl who has amazingly decided to stick with me.
- Found a job creating websites and working with Flash and ActionScript
- Moved to San Francisco
- Joined the working world and become self-sufficient
As I've said before, I'm no longer the bored teenager with way too much time on his hands, and what I do want to do with my free time has changed.
Recently, I've been spending my time playing ridiculous amounts of Team Fortress 2. You can look me up, I go by the name [RH]Earl, and play on this server all the time. I also made a map for the game last year, which was really interesting.
So what is in store for aeflash?
First of all, I want to update this outdated excuse for blogging software with a more modern equivalent. I'll keep the current design, I'm still quite fond of it, but I'll actually code it in the right way. If anything, this site will become more of a conventional blog where I can post my own thoughts and findings.
I've learned so much about programming and actionscript, and even flash automation, but I haven't had time to play around with them. If I do put new work up, it will involve at least one of those things. I've been wanting to do some computational artwork (like Jared Tarbell) for a while now.
I also do plan to put up an old animation that was never finished and never will be, even though a lot of work went in to it. It will happen eventually!
I hope to kick some of this stuff off within the next month or so. I don't know who still comes to this site, but whoever you are, I'm tired of letting you down. :P Don't be afraid to leave a comment!Read more…
Well, it's been nearly a year since I released DIFFERENT 3, and to be honest, I've barely touched Flash in that time. I haven't had much free time, with the university and work, and I'd rather spend my free time doing other things. I am no longer an idle teenager sitting at home with notheing better to do that muck around with Flash. So I guess I am officially putting my animations on hiatus.Read more…
Other than that, sorry, nothing is new. I'm pissed off at myself that I haven't taken the time to animate some more, with moving out on my own and getting a job (as a computer programmer in a neuroscience lab!), BUT, I have recently made a pact to animate 30 mins per day, regardless. I owe it to you guys as fans, and I owe it to myself as an animator. So I should have some new stuff very soon, hopefully.Read more…