Bellow you can find a list tags and their attributes that are supported by flash player (and also by flex framework). This list applies to TextArea, TextFields and other controls that are html enabled.
Anchor tag (<a>)
Creates a hypertext link.
href
target
Bold tag (<b>)
Renders text as bold.
Break tag (<br>)
Creates a line break in the text field.
Font tag (<font>)
Specifies [...]
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 [...]
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 [...]
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, [...]
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 [...]
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 [...]
Last week I tried to convert a small flex 2 application to air. It went pretty smooth with some minor exceptions that were fixed fast. So if you have a flex 2 app and did not do anything fancy in it then it all should work fine.
Keep in mind that flex 3 has some modifications [...]
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. [...]
The paper “Application-Specific Attacks: Leveraging the ActionScript Virtual Machine” written by Mark Dowd in which he describes various techniques that promise to open up a class of exploits and vulnerability research previously thought to be prohibitively difficult. While the Flash vulnerability described in the paper [pdf] has been patched by Adobe, the presentation of a [...]
Flex is a very powerful instrument but needs to be learned and studied. Some time ago I got into a bug - that is what I thought at the first impression - but is not. I talking about the MouseEvent.CLICK event which is triggered also by the KeyboardEvent.SPACE.
Please try the following example and you’ll understand [...]
Programmers with PHP background may miss some great functions that would make programmers life much easier (nl2br in PHP). Working with HTML in Flex is a big task and as you found in the previous article more functions are needed to process HTML strings.
In this article a simple function will transform any new line to [...]
Lately I’ve been working with Rich Text Editor so I found that I need more than what RTE offers. Recently I needed a function to strip HTML tags. If you have a PHP background you can remember the strip_tags function from PHP4 and PHP5 where you could strip all HTML tags but the ones you [...]
In the previous article I came out with a function that calculates the position of the cursor in the htmlText which is different than the position in the normal text. Rick draw my attention in his comments to some flaws which are correct: the & and other similar special chars are not counted correctly and [...]
Adobe plans to release a new security update for the Flash Player on 9 April 2008. The update plans to fix the issues listed in the December 2007 Security Bulletin ABSP07-20 for DNS rebinding and cross-domain policy file vulnerabilities, and Security [...]
Last task I finished was something linked with templates. I needed to create a simple template engine where adding a field was a necessity. I started using RichTextEditor which is based on a TextArea so it implements htmlText property. That is an easy way having all that nice functionalities like bold, italic, font choosing, color [...]