From the category archives:
Blogs
Po delší době jsme se rozhodli rozšířit vývojářský team v SiteOne. Máte možnost se ucházet o pozici Flash/Flex programátora, nebo PHP programátora a stát se členem přátelského teamu, který často a rád boří hranice možností webu. Rádi přivítáme jak zkušené profesionály tak i mladé programátory s otevřenou myslí a chutí se učit. Od uchazečů očekáváme [...]

Hi folks! Today, while mounting some of my projects into AIR, I realized that it would be great if I could pusblish AIR badges over Facebook. You know what? That is possible! I have created a simple flex application + facebook application that, based on parameters, generates AIR badge for an app. Now its time to share the stuff with you, feel free to publish your AIR badges, and let me know how do you like it.
How to use it?
- Use application inserted below, or open (and bookmark) it in new window, or use AIR publisher facebook application
- click connect (if using facebook application it connects you automatically)
- fill desired parameters (click “fill example” button to demonstrate working parameters for one of my applications)
- click “publish” button
- wait for Alert with publishing status (displays post id if succeeded)
By default it publishes AIR badge directly into your facebook stream (wall), plus if you click “Like” on my facebook application (facebook restriction), it also publishes the badge into AIR publisher application wall.
How would your facebook post look like?

Did you know you can label loops in ActionScript 3? Yes, you can! I got inspired by latest tweets referencing source code in image. Lets do some small experiments… Label all of them:
var a:uint, b:uint = 0;
loopA:for(a = 0; a < 10; a++)
loopB:while(b++ < 100)
loopC:for each(var c:uint in [0,1,2,3])
break loopB;
trace(a, b, c); // traces "10 10 0"
Where to go from here
Here is a quick tip how to check the version of your installed AIR application from an application running in flash player. In order to make your AIR application (system) be able to respond to the requests for installed version correctly you need to define allowBrowserInvocation within your AIR descriptor file (app.xml). If you don’t do this, you won’t be able to query version information on your application:
<allowBrowserInvocation>true</allowBrowserInvocation>
Now your AIR application will respond correctly with its installed version. With this setting on, the installed AIR application can be launched via the browser invocation feature (by the user clicking a link in a page in a web browser). Be sure to consider security implications.
Now, to get version info from any application running in flash player (or AIR) you simply call getApplicationVersion() method on air.swf file located on adobe domain.
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
loader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"));
function onComplete(event:Event):void
{
// applicationID - <id>sk.yoz.whatever</id> defined in app.xml
// publisherID - WindowedApplication().nativeApplication.publisherID
Object(loader.content).getApplicationVersion(applicationID, publisherID, appVersionCallback);
}
function appVersionCallback(version:String):void
{
if (version == null)
// application is not installed
else
// installed, compare variable version with some desired
}
Please consider this code as extract from AIRInstallBadge package downloaded from Adobe. The badge also uses more advanced features, make sure to read the article or see the source code.
Where to go from here:

Google Wave is an online software application formerly developed by Google. Soon after you get used to this new collaboration tool, you may leave behind old spammy e-mails used for communication. While creating waves is easy and intuitive, there is no button to print the wave
. Though, there is a chance. Print tip originally posted in comments on googlewaveinfo.com. In order to make this work, you have to run chrome with custom user-agent (iPhone 3).
- run
chrome.exe -user-agent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"
- fire up google wave
- click ‘Go ahead’
- select wave
- print using browser’s print page functionality