Adobe Solution Partner

April 20, 2009

Shan’s Simple Examples: Setting properties of custom components

Filed under: Shan's Simple Examples — Tags: , — Shannon Hicks @ 3:34 pm
Someone in #cfflex on DALnet was asking about a custom component. They wanted to have a component that had two lists in it, where selections from the first list would filter the options in the second. They had a method written out that would do the comparison and filtering on the two lists, but they [...]

April 9, 2009

Shan’s Simple Examples: Extending an object in Actionscript

Filed under: Flex & Flash, Shan's Simple Examples — Tags: , — Shannon Hicks @ 4:20 pm
The other day, someone asked me how they could re-use the code sample from Igor Costa’s post about getting the Rich Text Editor to output XHTML. Whenever you want to add functionality to an existing control, you just need to extend it. Here’s how: Here’s the top bit of code from my file: ::CODECOLORER_BLOCK_5:: The actual code [...]

April 27, 2008

Shan’s Simple Examples: File uploads with Flex and ColdFusion

Filed under: ColdFusion, Flex & Flash, Shan's Simple Examples — Tags: , , — Shannon Hicks @ 2:18 pm
Someone in #flex was talking about how there were no good examples for doing uploads with Flex and ColdFusion. Sounded like an excellent topic to cover here. Now this example is a tiny bit more complex than previous examples, because I needed to cover two methods of functionality: single file uploads and multi-file uploads. Both [...]

April 14, 2008

Shan’s Simple Examples: Start to Finish, using Ant with Flex for the first time

Filed under: Shan's Simple Examples — Tags: , , , — Shannon Hicks @ 8:01 pm
Disclaimer: This post is not about best practices or anything of that sort. This is just a recount of my first attempt at using Ant with an open-source Flex library project. Here are the steps I went through (well, minus the steps that did nothing) to get my first Ant build script up & running; Installing Ant There [...]

March 19, 2008

Shan’s Simple Examples: Using events (aka how to pass data from components)

Filed under: Flex & Flash, Shan's Simple Examples — Tags: , — Shannon Hicks @ 7:35 am
There was some confusion in #flex yesterday. The question came up on how a child component could access the parent component. Eventually, it came down to they wanted to pass some data from the child back to the parent. Well, the “black box” method of component programming says that we should use custom events to send [...]

March 6, 2008

Shan’s Simple Examples: Keyboard shortcuts and TextInput

Filed under: Flex & Flash, Shan's Simple Examples — Tags: , — Shannon Hicks @ 1:58 pm
Someone on #flex asked about preventing text from appearing in a TextInput or TextArea, when the user is using a keyboard shortcut. After a little discussion, I came up with a working example. I decided to use shift-space to simplify things. The first assumption is that you’re listening for keyboard shortcuts at the application level: ::CODECOLORER_BLOCK_12:: Now, you’ve [...]

March 3, 2008

Shan’s Simple Examples: Using an XML datasource with mx:ComboBox

Filed under: Flex & Flash, Shan's Simple Examples — Tags: , , — Shannon Hicks @ 1:44 pm
Over the weekend I was writing a simple little app, and came across something that should have been trivial, but turned out to throw me for a loop momentarily. I needed to drive some data from XML instead of my tried-and-true ColdFusion components, and I realized I’d never done it before. So, here’s the example: First [...]

February 1, 2008

Flex: Making Scrollbars Follow Focus

Filed under: Flex & Flash — Tags: , — Daryl Banttari @ 11:30 am
If you’ve ever created a form tall enough to require a vertical scroll bar in Flex, you may have not even have noticed that you have you scroll down manually when focus moves below the visible part of a window. Users, however, notice, especially if they don’t have a scroll wheel on their mouse. There [...]

January 24, 2008

Shan’s Simple Examples: Scale all children in Flex

Filed under: Flex & Flash, Shan's Simple Examples — Tags: , — Shannon Hicks @ 7:23 am
I’ve decided since I attempt to help people in #flex (on EFNet) and #coldfusion / #cfflex (on DALNet) on a daily basis, that I’ll pick one simple question and try to whip up an example for everyone to see. Today, someone asked how to scale all children of a container. The basic answer is to just [...]

January 23, 2008

List manipulation library for Actionscript 3

Filed under: Flex & Flash — Tags: — Shannon Hicks @ 8:36 am
I forgot to mention here that I wrote up a nice Actionscript library for manipulating lists. It includes a majority of ColdFusion’s list functions, plus a few that we commonly use here at Webapper. Sometimes you just need a list instead of an array. Get the library here.
Older Posts »

Server Down?

Maximize Web application uptime by drawing upon Webapper's years of experience tuning and stabilizing many of the world's largest ColdFusion Web applications. Contact us today!