DataGrid Transparent Background in Flash 8
I feel like I’m really behind in the loop here using Flash 8 components over the new, supposedly easy-to-use Flex components, but I figured I’d share this little tidbit, since it was nearly impossible to find online.
If you’ve ever worked with Flash’s built-in DataGrid component, you’ll quickly discover how difficult it is to customize: there’s theme files to edit, there’s styling, and there’s classes (such as RectBorder). Unfortunately, none of them helped me to set the background of the DataGrid component to transparent.
The closest solution I found was on FlashGamer, but I soon found that any buttons or MovieClips being placed into my DataGrid via the cellRenderer API were being set to transparent as well. So, I spent some time figuring out how FlashGamer apparently figured it out:
I went through the class files in the Flash 8 Application/First Run/classes/mx/controls/DataGrid.as to discover that Flash was using the drawing API to generate the background (I could have fixed it here, but didn’t want to do anything questionable in the eyes of the license agreement).
Then, I published an SWF and checked out Debug > List Objects to see the MovieClip structure of the DataGrid. What I found I wanted to hide was my _dg.content_mc["listRow"+i].bG_mc. Like FlashGamer, I discovered that it takes about half a second to render the DataGrid (I’d test based on amount of data, though), and, oddly enough, the rows started at 10. So, I reused the while() loop generously offered, but rather than use a custom frame-based timer class, I used the undocumented global setTimeout() method (for documentation, check out FlashGuru’s setTimeout() post).
So, to set your DataGrid background to transparent, pull a DataGrid component onto the stage and name it “my_dg” and place this code on frame 1 of the _root:
import mx.controls.DataGrid;
//Create a dataProvider to add some data to the Datagrid
var data_array:Array = new Array();
data_array.push({Model:"Ford", Year:0});
data_array.push({Model:"Dodge", Year:1});
data_array.push({Model:"BMW", Year:2});
my_dg.dataProvider = data_array;
// set border_mc to transparent
my_dg.border_mc._alpha = 0;
/**
* Hides background of DataGrid.
*/
function hideBgd():Void {
trace("hideBgd")
var i:Number = 10;
while (my_dg.content_mc["listRow"+i] != undefined) {
my_dg.content_mc["listRow"+i].bG_mc._alpha = 0;
i++;
}
}
// call hideBgd in half a second
setTimeout(hideBgd, 500);
Hopefully, this’ll save someone the time I took looking around.
I am a Brain Drain Statistic
Every once in awhile I feel compelled to put my writing shoes on . . .
This time, it was in response to a blog post I read in the Central Penn Business Journal regarding the brain drain.
I suddenly found myself wasting over an hour structuring a response that ended up being too long, so I’m trying to legitimize my time by posting the unabridged response here. Bear with me.
I tend to agree that this article would have been stronger without the blatant name-dropping. I’m also disappointed that the suggestions offered in Mr. Hartzler’s post are so vague.
Why not talk about how WebClients negotiated with ValueClick to keep young talent in Central PA? Couldn’t that prove to be a positive, community-building model for certain Central PA business owners reading this?
Why not encourage these Web firms to get more involved in the surrounding area? None of the companies listed in this post, or in these comments, mention internship programs on their respective Web sites (I’ve only counted 1 with an open FT position, though I realize this isn’t as controllable). When I was a Web design instructor at HACC, I was never approached by Central PA-based firms to establish a relationship between students [potential employees] and the local market. It’s no surprise that my students felt forced to look outside of Central PA, and I think some sort of program is definitely worth investigating (or at least blogging about here).
I agree that Harrisburg needs to “focus on residential development, retail shopping, multiple entertainment venues and other amenities and resources found regularly in larger cities,” but why not paint a picture of the pros, cons, and realistic possibilities of mixed zoning within the city? Explain why Midtown’s Capitol Heights look like a suburban, cookie-cutter ghost town–while downtown seems to only support similar bars with revolving names.
Talk about how these firms have affordably and culturally benefited by setting up shop in the city rather than outside of it. Perhaps more importantly, point out how the community has benefited from these firms. In either case, don’t compare where they set up to a larger city. It’s not the market’s potential that keeps firms in Central PA so much as it’s the climate of home to the employees.
My response above may be overtly critical, but I am a statistic of your brain drain (under 30 with a master’s degree now living in the NYC area), and I have seen friends in that area move to larger markets because such questions weren’t being answered, much less asked.
Smurfs and the MoCCA

I found myself commuting to meet with people that weren’t in the office due to the MLK holiday. Feeling a little unmotivated, I decided to take the opportunity to finally visit the MoCCA. Granted, it’s a small museum, but their exhibit on Saturday morning cartoon shows really took me back. Who knew the Smurfs were French? Who knew that in 1971 Frankenberry was taken off the shelves because it was turning kids feces bright pink?!
Umm, on the other hand, who needed to know that?
Mobile Gaming Statistics
Last month, Nokia made a Neilsen report available on the Evolution of Mobile Gaming. We’re not playing Final Fantasy on our phones, that’s for sure, but I was surprised that 40% of the U.S. respondents play cell phone games daily. Furthermore, over half of Americans play multi-player mobile games monthly.
Now I commute via bus and subway, and I rarely see people playing on their phones (though I have seen it!), much less playing a multiplayer game. As for me, you’ll catch me on my DS before I start playing with my phone.
I guess I just wish their methodology covered a slightly broader range. I feel like such a dinosaur since I don’t play with my Nokia S60 smart phone.
Visiting the National Design Museum
As I do every 3 years, I made it over to the Cooper Hewitt to check out the National Design Triennial. This year, the tagline is “Design Life Now.â€
This particular Smithsonian Museum is housed in a gorgeous mansion, and while I’ve never enjoyed their exhibits as much as the Design Museum in London, the gift shop sure is cool
I found some of what was to be expected—Joshua Davis Flash animations that were chugging veeeerrrrryyy slowly from being left on too long, A door decorated with some really cool Chip Kidd book cover designs, Processing (well deserved, too), Hunter Hoffman’s works (who knew video games could relieve pain?!), and the incredible work of PSYOP.
Besides having the PSYOP videos make me wish I was a video designer, I thought to myself, “if Nike is their client and is truly the one financing the design, why isn’t Nike here?†After all, it’s those hip companies like Apple, Target, and Nike that are paying people like me to do what I enjoy.
Eh, I was swiftly answered in the next room by a case of shoe soles.
Adjacent to the Pixar display I found a glass case decorated with Kid Robot toys, and here is my one problem with the exhibit—Kid Robot toys are ART, not design!
How is it that we decide what are and aren’t design toys, anyway? I love Kid Robot, but the toys certainly aren’t for kids, and while they’re “designed†by designers, are they really answering a problem like good design should? Even Kid Robot founder Paul Budnitz mentions in his podcast that people have a hard time differentiating whether his toys are “art†or “design.â€
I’m taking a stand. They’re art! And while I admit to shopping at Kid Robot and do enjoy their pieces, I say that artsy riff-raff doesn’t belong in the DESIGN museum!!!!
Aeron Chair

Price? Ridiculous. Worth it? Definitely.
My back just kept hurting with the Costco-bought leather chair I purchased. I have short legs, and they just barely made it over the base of the chair, which meant no lumbar support.
It was around this time that I noticed that just about EVERY NYC Web design/development firm that I sat in had these black mesh chairs. With how comfortable they were, I figured I’d get one.
Did I think I was on the verge of spending $1000 on a Herman Miller reclining instrument? No.
I guess I’ve been out of the loop, as the Aeron chair has had a storied history. At one point, it was a measuring stick for success—or failure—of a DOT.com business. I suppose the Aeron chair has it’s haters, but I’ve found that investing in an ergonomic chair in my field is definitely worth it. It’s exposed the fact that I lean in too much (the back can be set to follow yours when leaning). It’s also a custom fit—you choose the chair size according to your own dimensions.
Now, if I could just upgrade that $50 IKEA desk.
About Me
I'm a designer, developer, and teacher based in Harrisburg, Pa. I run Hauck Interactive, Inc.
Categories
Archives
- January 2012
- December 2011
- October 2011
- August 2011
- July 2011
- June 2011
- May 2011
- March 2011
- February 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005


