Showing posts with label flash. Show all posts
Showing posts with label flash. Show all posts

Sunday, August 11, 2013

Alternating Row Colors - Spark DataGrid

Just figured I'd toss this here, since this seemed to mess with me more than it should.

I've recently started a project in Flex 4.6 using MXML for the first time.

One of the things I needed to interact with was the Spark DataGrid component.

I needed to have alternating row colors. This seemed like an easy enough task, but everywhere I looked the solution was either set a property that no longer exists, or having me go through making a new skin to add this kind of functionality.

Or, maybe I'm just dumb an didn't recognize that the oft-referred to "alternatingRowColors" property wasn't a property, but a style. So the next step is trying to use this style, which takes an array.

So, here's the solution to change that property in MXML nicely and easily.

<fx:style>
@namespace s "library://ns.adobe.com/flex/spark";
s|DataGrid {
 alternatingRowColors: #DEDEDE, #E8E8E8;
}
</fx:style>

Keep in mind, that will style every DataGrid. Otherwise, you can just style an individual one like so:

<fx:style>
@namespace s "library://ns.adobe.com/flex/spark";
s|DataGrid#myDataGridID {
 alternatingRowColors: #DEDEDE, #E8E8E8;
}
</fx:style>

Where "myDataGridID" is the id property of your MXML DataGrid.

Sunday, July 31, 2011

Rainbows

So, after getting bored, I decided to make something spiffy in flash. Something involving rainbows, since, well, rainbows are spiffy.



Click the button in the lower left to load an MP3. Don't load when in fullscreen, Flash apparently cries when you do that.

Press spacebar to fullscreen.

If that doesn't look nice/work well, here's a link to the page hosting it: Link.

Tuesday, December 28, 2010

HyperPype Release

New game out! HyperPype! Twist pipes to solve the puzzle. The goal is to make a continuous, closed circuit of pipes. Faster times and fewer rotations give the best scores!

Vote 5 and play:
On Newgrounds and On Kongregate

Screenshot of Gameplay

Wednesday, December 15, 2010

A Turing Machine

This is the project for my class (History of Science and Technology). I made a Turing Machine in Flash. Well, it's more like a deterministic finite automaton but that's besides the point. Here it is for you to play with:



I've pre-programmed an example program that parses the symbol tape (of 'a' and 'b' only) so that no two 'b's are together. The program has persistent storage on your system, automatically removes state tables if they have no states, and yeah. Is awesome.

Quick run through on how to use it: Create/load a table, Create/load an initial tape, and run the machine. You can easily make your own though.

Enjoy.