Quick Tip: ApplicationUpdater for Updating AIR Executables

Few days ago I red an interesting article about Auto update for Adobe Air executable. This article is pretty self-explanatory, it is important to notice, you have to use ApplicationUpdater instead of ApplicationUpdaterUI that was designed for .air apps. One thing I was missing there was to make the process even more dynamic by reading the update url from an update.xml file. Long story short here is a piece of code doing exact the thing:

// var updater:ApplicationUpdater;
var xml:XML = updater.updateDescriptor;
var ns:Namespace = xml.namespace();
var request:URLRequest = new URLRequest(xml.ns::url);

Read the rest of this entry »

Flex Size Report


This post is for everyone who is looking for clear and readeable size report from flex.

1. Define “-link-report” flag for compiler
2. Export / publish your project
3. Create static .xsl file
4. Link .xsl file into generated .xml size report

Read the rest of this entry »

XML skin (update)

Simple runtime skinning using XMLSkin. Currently suported inheritance, values, styles, texts, statics, assets.

Passing values and styles via inheritance:

<?xml version="1.0" encoding="utf-8"?>
<data style.backgroundColor="#000000">
    <button1 style.backgroundColor="#CC00CC" width="500" label="Hallo">
        <parent height="200" style.backgroundColor="#FF0000"/>

Read the rest of this entry »