Get the Flash Player to see the slideshow.

horizontal accordion component [as3]

Built a Horizontal Accordion component for the Boys & Girls Club. The Horizontal Accordion is made of different Panels, each of which automatically tab-order their child Sprites. Many Panels contain Text Input fields. Each Text Input field includes a Flex-style means to add Validation. … There’s other less-cool stuff being done all over the place too.

Am posting the major classes. All code will relate specifically to the blue Horizontal Accordion on the site.

view HorizontalAccordion class
view HAPanel class
view OnStageObject class
view TextInputMod class
view ValidatingObject class
view Validators class

object-oriented as2 development

built a game banner which published to flash 7. requirements included being <130 k with a <100 k second load.  posted it here.

have always used as2 on an as-needed basis, but decided this time to operate on it.  open it up. see how it works.  or doesn’t work. dragged as2 screaming into the year 2008. into the light.

the utility classes i found, modified, or extended are useful for anyone coming from an object-oriented background:

  • DocumentUtil allows you to specify a Document class (aka Main class). :: Ryan Taylor @ boostworthy.com
  • BezierTween creates beziers using little phrases that even Flash 7 can compile. :: Felix Turner @ airtightinteractive.com
  • MovieClipBubbler bubbles as2 MC events. it is not simpler to use than an Event Broadcaster.  it does have performance benefits over an Event Broadcaster. :: Ralf Bokelberg @ helpqlodhelp.com
  • Hitbox is an essential extension of MovieClipBubbler, at least in concept.  you should take my implementation and twist it to your ends.  using Hitbox avoids having to draw zero-alpha’d Hit areas on all your MovieClips.  in simplest execution, the MovieClip in your Library links to Hitbox (rt-click/Linkage/’Export for ActionScript’/Base Class).

the interface is your friend

picnik has the friendliest registration process i have ever experienced with immediate, intuitive, consistent feedback.

moxie & me

“moxie & me,” it sounds like a chick flick. Hell, with the amount of time i spend with Moxie…

Flex Builder 3 (aka “Moxie”) Beta 2 is engaged in a user-friendly direction. Unlike my relationships. Adobe is all over their bug database. Moxie’s current character flaws are worth noting:

  • Pre-Moxie workspaces will act irreverant. Import all old projects into a fresh workspace.
  • When your project clearly isn’t building, turn off “Project/Properties/Flex Compiler/Generate HTML wrapper file.” Then click “Apply” and turn it on again. Sometimes it works. Other times you need to make a new Project.

Not bugs but some tips to save you time:

  1. When drawing shapes programmatically: create a UIComponent rather than a Shape, Sprite, or something else that you’d think would work.
  2. this:
    • var loader:Loader = new Loader();
      var url:URLRequest = new URLRequest("http://www.helpexamples.com/flash/images/image1.jpg");
      loader.load(url);
      this.rawChildren.addChild(loader);

    is not as correct as this:

    • var loader:Image = new Image();
      loader.load("http://www.helpexamples.com/flash/images/image1.jpg");
      this.addChild(loader);

Skinning the MenuBar points:

  1. You can apply styles for the submenu to Menu, including borderSkin, fontSize, paddingLeft, and now in build 187191 if openDuration=0, you can skin showEffect.
  2. The submenu doesn’t exist until activated from the MenuBar. myMenuBar.addEventListener(MenuEvent.MENU_SHOW, setSubMenuProperties); You can then alter additional properties and add filters, masks, …
  3. If your user group is expecting MenuBar RollOver to show the menu, you must play Houdini. Listen to anyone having a MOUSE_OVER:
    • menubar.getChildAt(j).addEventListener(MouseEvent.MOUSE_OVER, menuItemRollover);

    Redirect the event:

    • e.target.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_DOWN));

no child left behind

This focus on math and science, you’ve got to think about what it replaces. It’s hard for people to imagine but community life was our focus for most of humanity’s time line. Lots of singing. Math & science represent the isolating disciplines. The scientific method is not born of a thirst to communicate but for achievement. And achievement is ever restless for more, pushing above your neighbors. What have we achieved? Less free time than we had before our technological advances. Crowded, massed cities of lonely neighbors.

Somewhere the high school nerd, the one you saw get bullied, well he’s still lonely but he’s making a lot of money. His work creates weapons for bigger bullies. Those bullies say our country is losing its dominance in math and science. This September 11 I’m remembering everything we’ve lost including the three World Trade Center buildings, even if we’ve forgotten both our neighbor and that three buildings collapsed.

bert jansch @ cafe du nord

August 26. I could go on for a while about his influence on pop stars, this sort of thing,

He completely re-invented guitar playing and set a standard that is still unequalled today…without Bert Jansch, rock music as it developed in the ‘60s and ‘70s would have been very different. You hear him in Nick Drake, Pete Townshend, Donovan, The Beatles, Jimmy Page and Neil Young. There are people playing guitar who don’t even realise they’ve been influenced by him one step removed –- Johnny Marr.

but this show will be completely different than that. it’s an old, grumpy, romantic, genius, scot.  A male nick drake.

seanbaby on the wonder twins

You might have noticed that cartoons had a different idea what was comic relief than other media. Comic relief in cartoons didn’t make you laugh. They were just a couple people that we hated more than anyone else. After you watch the Wonder Twins wander into lava, make shitty puns, and lose a fight to a parked bicycle,

Zan, if you can turn into an Ice Missile, why the fuck would you ever pick Puddle? Name one thing you couldn’t beat with an ice missile. Now try to name anyone you ever beat when you turned into a puddle. Besides Empress Suede Pumps.

Sgt. Pepper’s Lonely Hearts Club Band

This year is the 40th anniversary of an album that was massively influential on today’s rock bands. Lyrically, an album that conveyed street-wise serious literary themes in straightforward, simple language. Musically, an album that draped avant-guard drones over simple rock ‘n roll. Of course I’m talking about The Velvet Underground’s 1967 debut album. I’ll leave it to Lou to overstate the case:

“Let me tell you, [Sgt. Pepper’s Lonely Hearts Club Band] didn’t have any effect on me. I don’t even own it. I thought it had some of the worst songs I’ve ever heard in my life on it. *Mr. Kite* — absolutely unbearable. I didn’t like it then, and I don’t like it now. I don’t see how people can even think of it seriously when you compare it to, like, The Velvet Underground’s first album. No comparison. I think that, perhaps, if people listen to it in retrospect now, they might find it a little more ridiculous, the way I did then. It was like gooey pap. It was like completely dispensable from beginning to end. It just had nothing, *nothing*. On top of that it was *cute*, you know?” [in Rolling Stone. 1987]

shakespeare in the park

shakespeare is one of those guys who’s so brilliant he’s intimidating.  picasso is another but you can’t pretend to reduce shakespeare to a screen saver.  this summer’s free shakespeare is unfortunately the lsd-like musings of midsummer night’s dream.  i did once see a production of MSD which was truly enchanted, but that was in london.  flowers literally sprouted from between the floorboards on the stage.

San Francisco: Main Post Parade Ground Lawn in the Presidio

# Saturday, Sept 1, 7:30 PM
# Sunday, Sept 2, 2:30 PM
# Monday, Sept 3, 2:30 PM (Labor Day Holiday)
# Saturday, Sept 8, 7:30 PM
# Sunday, Sept 9, 2:30 PM
# Saturday, Sept 15, 7:30 PM
# Sunday, Sept 16, 2:30 PM
# Saturday, Sept 22, 7:30 PM
# Sunday, Sept 23, 2:30 PM

erik otto @ shooting gallery

this guy @ this gallery is creating vibrant work that doesn’t need to be animated. it’s got faucets leaking, scary-looking people, and cute little birds — just like my life.