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 […]
Popularity: 27%
Today I found a new 3D engine: AS3 ROXIK Sharikura 3D Library. It is great from what I could see from their demos. Interesting is this demo where you can add more and more object to the animation but the animation is not jerky.
The library at this moment is not released but Masayuki Kido […]
Popularity: 36%
Although Flex Builder and Eclipse do have nice debug utilities built in, today I needed a function/method in Actionscript to display into the current application some variables’ content. So I started to implement a var_dump alike function (var_dump from PHP language).
So I started and I made the Debug class that will implement the static dump […]
Popularity: 35%
In a previous article I explained how to use FIVe3D with Flex and because fl.motion is not included into the Flex Framework we had to find out a workaround. I commented out the lines that referenced fl.motion but Kelvin Luck found another way: “copy the classes from Flash CS3 Actionscript framework into the project”. So […]
Popularity: 67%
This will be a simple solution to be able to scroll to the last added row in a data grid. First of all I’ll explain what I mean and what I encountered when I needed to implement it.
The expected behavior is after adding a new row into a data grid, it should scroll to […]
Popularity: 59%
For some time I’ve been planning to use FIVe3D of Mathieu Badimon, in Flex, not in Flash. I’ve been trying to make it work but no success ’till now.
After more than 4, 5 tries, I’ve managed to take the example from the FIVe3D framework and implemented it in Flex. It was not an easy task […]
Popularity: 71%
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 […]
Popularity: 62%
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 […]
Popularity: 61%
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 […]
Popularity: 71%
Some time ago, in a previous article I presented you ImageRail component that displays some thumbnails with possibility to scroll to left or right. Now we will add some new features that were missing.
Click Event - imageClick
Styles - imageBackgroundAlpha
HandCursor
Click event will be triggered when there is a click on an image, more precisely, on the […]
Popularity: 81%
What I mean in the title is this: having a data grid with a column containing some priorities (like: urgent, normal, high) among other columns, you want to sort by this priority column, but you notice that is not sorted by its importance but alphabetically. To make it crystal clear follow the example bellow…
Having the […]
Popularity: 62%
Using events is fun in MXML components is fun and easily you can specify events using Event meta tag inside the component like this:
<mx:Metadata>
[Event(name=”myevent”, type=”com.MyEvent”)]
</mx:Metadata>
The following lines defines the myevent attribute of the component like this:
<com:FramedImage x="10" y="10" myevent="handleMyEvent(event)" … />
FramedImage component is a custom component which displays a framed image.
For […]
Popularity: 63%
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 […]
Popularity: 89%
In the previous articles in this series I explained how to create a horizontally and vertically resizable canvas. In this third article we will add the possibility to resize in both direction by dragging the right bottom corner.
What we will do:
add the new UI control (the right bottom button)
create the necessary events for it
create CSS […]
Popularity: 71%
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 […]
Popularity: 87%