Heres a quick snippet of code to show how to easily turn the text of an email address into an image.
This can help to deter bots from harvesting your email address.
Credit to RevolutionWeblog as this is a modification of code from there.
destination = "newImage.png" source = "#request.newImage#" overwrite = "yes" quality = "1.0">
|
|
If you are ever building a multi-lingual application using flex then you will no doubt end up using resource bundles.
When building a resource bundle for a language like French, you need to ensure that the encoding of the resource properties file is set to UTF-8 when editing. Otherwise you will end up with a number of little square boxes appearing in your text where the french accents are supposed to be.
By default the resource properties files are set to ISO-8859-1. To alter this, right-click on the resources.properties file and change the text file encoding property to UTF-8. You will then need to go back and retype the text in the files. Many thanks to Didier Burton for pointing this out to me.
Voila... no more square boxes!
|
Here is a simple method of how to embed an mp3 file into css and play it in an application.
There is not alot of info out there on how to do this and I found out basically by trial and error so I hope this may be of use to some of you. Also... I'm not sure if this is the best practise way of doing this, there may be another way that is simpler or better... please let me know if you find something
|
www.thatpokerclock.com is my first ever cairngorm flex project. If you are looking for a nice and simple poker clock for your home games this will see you right.
Its still in beta phase and I have a load more tweaking etc I want to do to it but it seems to work really well right now, so I thought why not put it on the web for everyone to use it. Im off to the Air bootcamp this week so the desktop version should be too far away!
|
|
Adding Google Analytics tracking to your cairngorm flex or Air applications is really simple.
I will assume you are familiar with Cairngorm and already have an analytics account.
|
Here is a sample script I worte to create an autohiding toolbar. Its a very simple application which shows the toolbar when the mouse moves over the panel, and hides the toolbar when there is no activity for 2 seconds.
|
|
|