Flex Bug: Icon shadows in a TabNavigator’s Tabs

May 27, 2008 – 6:59 pm
This is likely a generic problem with anything that uses a Button but I have found this issue with Tabs in a TabNavigator specifically. When you have a TabNavigator with multiple complicated children that take a while to load, clicking one tab then clicking another quickly can lead to a "shadow" icon at the top-left of the tabs. See the bug for more: SDK-15656

Running JavaScript when the page finishes loading

May 23, 2008 – 2:54 pm
I know what you're thinking. window.onload and <body onload> already let you run javascript when the page loads. Why do I need something more? The answer is that the standard onload only runs when the entire page and its dependencies are finished loading. This means that if you have multiple images (such as tracking tags) or scripts or a large swf, the onloaded code will only run once all of those pieces load. The point of the following is to run some JavaScript once the page itself has loaded and been parsed. This allows you to do things like set the background color, add additional elements, or start loading other dependencies while the rest of the page's depdencies are loading. This is particularly useful if you need to do something on a page while a large swf is loading. The following is a combination of several posts on Dean Edwards' blog ...

Easy ID3 Tag Editing in OSX

May 1, 2008 – 2:01 pm
This is another quick informational post about a program that I find very useful. Musorg. When I was on Windows I used Mp3/Tag Studio to edit the ID3 tags in my MP3s. While this program is very useful and free (ad supported) it's a pain to have to fire it up in Parallels to edit my tags now. Musorg is a free and simple OSX program that just lets you edit your ID3 tags.

Pitch Detection for Mac OS X

March 19, 2008 – 1:23 am
I just had to put up a quick blurb about QPitch. It's the only free software I could find which would do pitch detection for Mac OS X and it works very well (and is fun to play with). Thanks, William Spinelli.

Inverted Mask in Flex

March 17, 2008 – 6:59 pm
Today I took on the challenge of changing a component I built last year to fit into a new style our creative department just finished for a new website. The previous component had a drawn background and some text laid over it which was a different color. The new style called for the same thing with a different background color and the text cut out of the shape. The different background color was easy, I simply added a few styles (one for rollover too) and had it changing color. The harder part was cutting the text out of the background. I knew that this was possible in graphics programs by inverting the mask used or subtracting the shape from another shape and using that as the mask. I couldn't find any options in Flex for inverting a mask and a google search provided nothing on inverting a mask. I did, ...

Travian Resource Reallocator

February 28, 2008 – 7:18 pm
Last but not least in this deluge of posts is a little utility I created to allow people to reallocate their resources efficiently in Travian. There is a feature in this game, for those who pay a little money, that allows you to change any type of resource (lumber, clay, iron, crop) into any other type. This is very useful for situations where you are producing way more of one resource than another or simply want to speed up your development but if you reallocate for one thing then want to use the remaining resources for another thing you would need to either calculate the amounts manually or reallocate multiple times (thus costing more "gold"). The resulting app allows you to reallocate your resources for any troop type in the game, allows for configuration of the # of them you wish to train, and lets you add any number of ...

3D Sierpinski Gasket

February 28, 2008 – 6:53 pm
Let's keep the ball rolling with another fractal creation. I've been playing with Papervision3D lately due to its use in a recent site I worked on and the San Francisco Papervision3D class I attended a few weekends ago. This latest is a verson of the sierpinski gasket which follows the same ideas as the last one I made but using 4 points to make a tetrahedron in 3 space. The same symmetry is applied but 4-fold and the lines are drawn but soon after removed as they quickly overshadow the pixels and slow the rendering down quite a bit once there are more than a few. Also notice that the pixels have some nice effects applied to them, making a kind fo vortex. Thanks to Andy Zupko for the Effects branch of Papervision3D and his part in the class I attended.

The Dragon (in Flex)

February 28, 2008 – 9:40 am
Ever snce I got my tattoo(s) I have been explaining the fractal known as the dragon to anyone who takes an interest in it. I've even named some of my villages in Travian after the turns you take to create some of them. While explaining the fractal yet again I remembered the way that I originally learned to build it: draw the next iteration over the old one. I originally found this fractal at the beginning of each chapter in Jurassic Park. Since it had a regular box shape I used to use graphing paper to draw it, then after time realized that I could turn the paper over and draw the next iteration over the old one using a simple algorithm. Start by drawing a right angle to one side of the first line, then draw a righ angle to the other side of the next line, and repeat. ...

Sierpinski Gasket (in Flex)

February 28, 2008 – 8:57 am
While on the plane back from Indianappolis I had two new ideas for generation of a Sierpinski Gasket: 3-way symmetry and line display. For those that don't know what a sierpinski gasket is, it is a fractal that starts as an equilateral triangle with another one inscribed inside it. The next iteration adds triangles inscribed in the 3 "edge" triangles. This continues over and over (forever). This implementation uses a different method of generation. You start at a random corner of the triangle, choose a random corner, move halfway to it, and draw a dot. Continue to randomly choose a corner, move halfway to it, and draw a dot, and you get the same thing as above.

Is a black code background possible in FlexBuilder 3 beta 3?

January 2, 2008 – 4:27 pm
A coworker of mine is a big proponent of black backgrounds in his IDE, so much so that he's sticking with FlexBuilder 2 as FlexBuilder 3 doesn't seem to allow changing the black color of the period, semi-colon, comma, numbers, and possibly other tokens. If anyone knows how to change these colors, possibly by editing files in jars as in FlexBuilder 2 please let me know. If you don't please vote for the bug he opened (FB-11574).