Archive

Archive for the ‘Flex’ Category

Cropping white space from images using Flex Bitmap classes

March 2nd, 2010 Christopher No comments

This blog entry covers a quick introduction to the Flex bitmap classes, BitmapData and Bitmap. Read more…

Categories: ActionScript, Flash, Flex Tags:

Working with ESRI SHP Files in ActionScript

September 4th, 2009 Christopher No comments

There are lots of heavy weight solutions to drawing maps in Flex and Flash but for a recent project I needed something lightweight to display on a web portal. By lightweight, I mean something that will load quickly over a modem connection or, in our client’s situation, an air card. We already had sales alignment maps created in the ESRI SHP format so the goal was to utilize them in the Flash environment to make displaying maps more interactive. This post will cover the basics of loading SHP files and rendering them with basic ActionScript code. No Flex components were used to keep the footprint small.
Read more…

Categories: ActionScript, Flex Tags:

Horizontal Scaled Canvas

March 31st, 2009 Christopher No comments

Let’s say you have a Canvas containing several UI components.  Depending on the screen size, some may be too large to display inside the canvas causing scroll bars to appear.  Instead of having the user see scroll bars or a cropped version of your UI components, you can scale them so they fit perfectly.  Here’s how I solved this problem. Read more…

Categories: Flex Tags:

Drawing curved lines and arrows in Flex

February 18th, 2009 Christopher No comments

While working on one of my mapping projects, I needed to draw some arrows between different points on the map.  After searching the web I found something close to what I was looking for, but I wanted curved arrows for a slick look. Read more…

Categories: Flex Tags:

Taking control of right-click in Adobe Flex

February 2nd, 2009 Christopher 5 comments

Adobe was kind enough to give developers the ability to add options to the right-click menu in a Flex application with the use of ContextMenu objects.  However, if you want to customize the way the right-click menu displays, or perhaps do something entirely different when the user clicks the right mouse button, read on to find out how! Read more…

Categories: ActionScript, Flex Tags:

Submit any form on key return in any browser

August 5th, 2008 Christopher No comments

You may have noticed that in Internet Explorer, pressing return while focused on a form input box only submits the form when there is a single input box. Once you have multiple inputs, say a username and password, it stops working. Read on for a tip on how to gain back this behavior on all browsers AND validate the input before submitting the form!

Read more…

Categories: Flex Tags:

Exporting symbols for Flex using Flash CS3

February 29th, 2008 Christopher 2 comments

If you have designers sending you Flash SWFs for buttons and other objects in your Flex application you probably have come across Adobe’s tutorial which may not answer all your questions. The simple question my designer had was “How do I export a symbol?”. Read on to find out how… Read more…

Categories: Flash, Flex Tags:

Making the most out of Data Binding

September 10th, 2007 Christopher No comments

Data Binding is a great way to reduce unnecessary marshaling and marshaling code when manipulating data based on user input. Read on for some neat tips.
Read more…

Categories: Flex Tags:

Placing Cairngorm Commands inside Modules

September 8th, 2007 Christopher No comments

In order to reduce the size of the main application SWF, I have come up with some practices to keep as much code as possible in the module while still utilizing a single event dispatcher and service locator.

I accomplished this by creating a Cairngorm command to register other commands found inside modules. Read more…

Categories: Flex Tags:

Making use of Cairngorm ValueObjects

September 2nd, 2007 Christopher No comments

When I first started working with Cairngorm I didn’t really see the purpose to ValueObjects. I would just define my variables inside the event like many of the examples out there. Then I found an old blog post at richinternetapps.com and was convinced to give them a shot. Read more…

Categories: Flex Tags: