Cropping white space from images using Flex Bitmap classes
This blog entry covers a quick introduction to the Flex bitmap classes, BitmapData and Bitmap. Read more…
This blog entry covers a quick introduction to the Flex bitmap classes, BitmapData and Bitmap. Read more…
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…
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…
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…
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…
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!
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…
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…
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…
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…