blog

Tag Archive for xml at Jozef Chúťka's blog

December 30, 2010

2 Comments

ApplicationUpdater ApplicationUpdaterUI namespace StatusUpdateEvent update.xml xml

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);
navigateToURL(request);

Read the rest of this entry »

January 5, 2010

1 Comment

compiler flag link report xml xsl xslt

Flex Size Report

linkreport

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 »

October 5, 2009

No comments

recursive runtime skinning xml

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"/>
    </button1>
</data>

Read the rest of this entry »