This component was created in order to improve user experience when the user must select multiple options from a long list of items. As you already know, if you select more items from a list component you have to scroll in order to see what it’s you actual selection.
So, what you do if you [...]
If you need and auto resized text area then you are in problems. As far as I know there is no property to use to make a text area auto resizeable.
I really needed an auto resizable text area so I started searching and studying. I found that we can use mx_internal properties, variables and methods [...]
Yesterday I’ve been working with images: loading, resizing, removing, etc. I got into a challenging issue: I had to vertically position a label after an image resize – but a resize that is triggered by setting maxWidth and maxHeight keeping also the aspect ratio.
I tried to get the new width and height after the resize [...]
In the previous article I explained how to use Yahoo! Maps. Now I’ll explain how to create a custom marker and how to place it on the map. This is not an easy task because on Yahoo! Developer Network (YDN) there is not enough documentation regarding Yahoo! Maps API for AS3. Take a look at [...]
This article will explain how to create a wildcard search. What I mean is the following:
dir *.*
or
dir myfile??.txt
The old DOS searching way. The first command (if you’ll run them in Command Prompt) returns all files with extension from the current folder. The second command will return any file having its name as this: [...]
This is a very helpful piece of code. Function to escape all regular expression special chars. I came to this string having this order of characters by trial and error. So now you can use it easily by copy and paste.
What is important to know that MXML and Actionscript compiler do automatically escapes backslashes (“\”) [...]
MatrixGrid is a complex component I made that displays a bi-dimensional array and gives the possibility to change its values using combo boxes. These are the changes you can do:
change one single item
change one row at once
change one column at once
The MatrixGrid component receives for objects:
array with the possible values in each combo box
the [...]
In the last article I explained how to create an image surrounded by border. That article is a start for fixing the issue: “image doesn’t have border style”.
Now I extended even more the new ImageBorder component to be able to center it horizontally and vertically and still be well displayed.
Modifications were made in updateDisplayList method [...]
How to put border around an image? How to do that when you set only maxWidth and maxHeight? This is not an easy task. Googleing about my issue I found this, on Adobe’s LiveDocs (you must go at the end where comments are): a couple of helpful comments where Justin.Buser is, literally, drawing a rectangle [...]
That is a verry small isue, but some times we really need a fast answer.
I try to use setFocus method for diffrent UIComponents, for most of them it’s ok, but for a button for example you can’t see focus border using only setFocus method, so the solutions is to use also drawFocus method.
drawFocus method is [...]
In this article I’ll present a new component I built: ImageRail. This MXML component will display a series of thumbnails having the possibility to scroll them horizontally.
Parameters:
paths: an array containing URLs to images
images: an array containing image objects
imagesToShow: an unsigned integer that specifies the number of images displayed at a time – deafult is [...]
In this post we will implement a login process with remember password functionality. In AS3 and also in AS2 we can use a SharedObject to store data on the users browser. Shared objects are similar to the all known browser cookies but are managed by the flash player. Shared objects can store data also remotely [...]
If you use Combo boxes to display options in some cases you may want to display options that are containing more than a few words. Maybe you want to know how a user arrived on your flex application and you want him to select from some complex options, but in the same time you don’t [...]
When speaking about RIA one of many nice usabilities is that to be able to give feedback to the user when it comes to critical actions like submitting important data, saving work, etc. Let’s have the following example: You log in into a RIA with your user and password, you do changes to your data [...]
Now here is an example how to check a user using our CAPTCHA.
For source files see bellow.