360|Flex slides and code

As promised, here is a link to the ppt and code from my presentation today. Glad you came to hear it and hopefully you enjoyed it!

360Flex_Atlanta_2008.zip

peas

DK

update: sorry folks, had a case of ICTFS (i can’t type for shite) link is updated


Speaking at 360|Flex Atlanta

So, I’ll be presenting at 360|Flex Atlanta. I will be discussing custom components in a ERIA setting. I plan to talk about components strictly for the first half and speak to item renderers the second half. Item renderers are after all just specific custom components. I will be mixing things up and switching between MXML based and AS based code so you can see similarities, differences, etc… My goal is to really hangout in Flex Builder most the time, that’s more fun then a PPT, eh? Much of what I will cover is similar to a presentation given at the Atlanta Flex and Flash UG

In covering custom components I’ll be covering the components listed below. These start with a fairly simple example and progress. Depending on time, we may not cover them all in depth, but the code bits will be around. Note that these will be examples only, not really fully robust skinned code.

  1. StatesCombo
  2. Yes/No control
  3. TextInputMoney
  4. MonthYearChooser
  5. StrikeThroughLabel
  6. SurveyQuestion
  7. DayOfWeekControl

In covering item renderers I should be able to cover the below with the same caveats as above. I’ll probably be editing this as I add more.

  1. NegativeNumberItemRenderer
  2. ThumbImageItemRenderer
  3. CheckBoxItemRenderer
  4. GPSIconRenderer

You got any suggestions for this topic? Shoot me a email or comment here and we can see about incorporating the idea.

What you have not registered for 360|Flex yet?
360|Flex Atlanta, February 25-27, is the place to learn about Flex and AIR from
Adobe and community speakers. Included in the price of registration is a free
pre-conf, all day training session on Flex 101. We’re the premiere Flex and AIR
conference. $480 for one or $1500 for a 4-person team. Visit http://360flex.com

peas

DK


Flex DateField and formats

ugh, what a waste of time on this today. SO, you have a DateField control in your fancy uber high UX’d out BRIA form when the business comes to you and says hey, we want the date formated as: DD/MM/YYYY. Sure says you , cake right? So, you precede to the docs on DateField and see a formatString property that accepts a string the same as DateFormatter.formatString. Yippee! NOT! Using the formatString of DD/MMM/YYYY actually formats to ‘12/02022008′, oops. Ok, so you bust out the labelFunction and bamm! Works a treat. Until you programmatically try setting selectedDate on this DateField that is. You have to set the parseFuntion to null to keep Flex from messing with it and your head. Example code below.

Peas

DK

<mx:Script>
<![CDATA[
private function doDateLabel(item:Date):String {
return dateFormatter.format(item);
}
]]>
</mx:Script>
<mx:DateFormatter id="dateFormatter" formatString="DD/MMM/YYYY" />
<mx:DateField id="begin"
showToday="true"
labelFunction="doDateLabel"
parseFunction="null"/>


360|Flex Atlanta…things to see

If you got some time before or after 360|Flex, do try and check out the below.

That’s a start. You can check this link out for events and happenings going on
Atlanta.net events

If you haven’t registered yet, get on it!
http://www.360conferences.com/360flex/
peas out

DK