Find your principles (and get a haircut!)

Inventing On Principle – Bret Victor

 

Would you call Elisabeth Cady Stanton a community organizer?
You are defined by your cause, not your title.

 

That‘s just one of MANY gems in this talk by Bret Victor.

Very effective way to spend your lunch hour.

-Strack

Thanks Flash & Math

Just wanted to give a shout out to Flash & Math.

I’m working on a (not-so-hush-hush) multi-touch app, and the standard drag and touchdrag functionality just wont do.

I had to roll my own, but this proved very difficult. That is, until I found this article:

http://www.flashandmath.com/basic/dragdroptour/dd_tour1.html

 

You saved my life, fellas. Thanks!

 

Strack

TextInputs, StageTexts, & Scrollers (oh my!)

Any scrollers I’ve used (up until today) on mobile devices have been through lists, so I have created my own custom ItemRenderers.

Well, today I decided to be lazy and just add TextInput controls, along with labels and spacers, directly into a VGroup.

Compiled, debugged, and tested, all will great success….. until I tried to actually put text in the text boxes!!!
If you enter text, you get very odd text placement, and often the text will disappear entirely:

 

 

Well fancy that!

I did some digging and found out it’s intentionally this way, for performance reasons.  The parent component for TextInput and TextArea is StageText, which really REALLY hates scrollers (must have done something to StageText as a child!).

It’s a pretty straightforward fix: Adobe provides a custom skin that will heal the hatred, and all you need to do is reference it, like so:

<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
.myTextInputStyle {
skinClass: ClassReference("spark.skins.mobile.TextInputSkin");
}
.myTextAreaStyle {
skinClass: ClassReference("spark.skins.mobile.TextAreaSkin");
}
</fx:Style>

 

Then add a reference to your TextInput / Text Area Field:

 

<s:TextInput id="txtSignName" width="415" styleName="myTextInputStyle"/>

 

 

I get the logic behind it – mostly because let’s face it, how often are you NOT going to reskin / use an ItemRenderer?- but it’s still pretty troublesome to find the solution.
(btw, I got the answer from the Adobe Flex 4.6 reference, found here)

I’m curious to see down the road, as processors get faster in tablets, what the default settings will be. I suspect we’ll find that settings/optimizations like this will become increasingly rare as performance improves.

 

-Strack

Steve Jobs’ Vision of the World

Ironic (if you know me) that I’m starting off with a Steve Jobs quote, but hey, he said something that has changed me in the middle of the day. And how often does that happen?

Continue reading…

Introduction

After a good, solid year under my belt, I’m ready to start sharing some of the excitement I’ve felt since joining the Adobe team.

 

We’ll have code snippets, walkthroughs, product / book reviews, and of course the obligatory ramblings that we all delude ourselves into thinking are interesting and poignant pieces of blogging art.

Stay tuned, and I hope you find at least some of the posts inspiring or at the very least helpful in some way.

 

-Strack