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: 62%
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: 93%
As we promised we are back with a tutorial on how to build Flex applications for Astro flash player. This will be a step by step tutorial which is intended to help you install the last Flex SDK from daily builds. So let’s start…
1) Get the Flex SDK Daily build.
2) Create a new folder: “3.0.1.1739“.
3) […]
Popularity: 79%
Today I installed Astro! What I did to be able to still develop and debug flash player 9 applications? I installed the Flash Player 10 just for Firefox and for debug I’m using IE. You can inverse it and install the ActiveX for IE and keep Firefox with the flash player 9.
The links to […]
Popularity: 53%
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: 67%
In this article I’ll show the same application I presented at FlexCamp Bucharest Romania 2008 - the video from the conference is available here and although it is in Romanian it might be useful. In the presentation I’m showing the power of Flex: doing complex applications with a few lines of codding.
With this article […]
Popularity: 97%
During last week I had to do a small application for AIR. That was until friday when I had to release it and found out that the app had to work also in normal browser. Since almost all the code was independent of the type of app (AIR/Flex) my task was pretty easy:
Get all existing […]
Popularity: 45%
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: 78%
In the past days I had to write a small app in AIR and one of the problems I came across was the saving of preferences locally. I needed to be able to read/write a file on the local file system. After some digging I found the answer and decided to make a small tutorial […]
Popularity: 55%
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 […]
Popularity: 53%
You can monitor your memory usage/leaking with System.totalMemory property. This way you can see how memory is used, where leaks are and you can optimize those parts that are eating too much memory.
In simple words use System.totalMemory as bellow (in KB):
var memoryUsedInKb:Number= Number(System.totalMemory/1024).toFixed(2);
I used it to show the used memory in different units: bytes, Kilobytes, […]
Popularity: 43%
For big projects that involves more people a version control software is a must. There are many but from the two most used, which are CVS (Concurrent Versions System) and SVN (Subversion), I’ll explain how to install Subclipse on Flex Builder 3 - Subclipse is a plug-in providing support for Subversion within the Eclipse IDE […]
Popularity: 46%
In the previous article I explained how to create a horizontally resizable canvas. In this second part we will implement also the vertical resize functionality.
Taking into account that we have the previous article to implement this new functionality will not be a hassle. All we have to do is to duplicate some UIs, methods, events […]
Popularity: 64%
Yesterday I started to implement a new control: Resizable Canvas. A very interesting task which needed some thinking because there are more than one ways to achieve this.
My implementation is based on a canvas that includes a reskined button as the right edge of the canvas for dragging. The canvas will be resized when the […]
Popularity: 56%
In the previous article, Remove Duplicate Chars from a String, I posted a way to remove duplicates characters from a string and make it of unique chars. So to make myself clear I’ll give the following example:
Source string: “aabbccaaddee”
Should be: “abcde”
(note the underlined characters).
In my previous article TLP has commented and created a better method. […]
Popularity: 43%