Categories
Actionscript Adobe Air eclipse Flash Builder git

Create New Project from Git Source in Flash Builder

Nowadays, more and more open source projects are hosted on Github – amongst others some great Actionscript-based projects. Actually, Git makes it simple to clone and import a working project to which you can actually commit changes (at least to your cloned, local repository). However, I found it quite complicated to get from the git link to a working project in Flash Builder: I needed to consider a few aspects to get everything up and working. I want to present the approach that worked for me in the following. If you know or figure out a better way, make sure to post it in the comments!

Categories
Actionscript

Recognize DisplayObject Transform Matrix Change Event in Flash AS3

If another object changes the transformation matrix of a DisplayObject, the DisplayObject has no means to recognize that it has been transformed, as it is transformed automatically. E.g., there is no kind of TRANSFORMATION_MATRIX_CHANGED event that is dispatched on the DisplayObject. If your DisplayObject still should react on a change of its transformation matrix, a workaround is necessary, which is described in the following approach. I show a short solution at first and will explain the actual problem and solution approach in more detail afterwards.

Categories
Adobe Air

Remove ‘View Source’ from Adobe Air Debug Context Menu in Flash Builder

Recently I wondered how I can get rid of that “View Source” entry in the context menu of Adobe Air as I wanted to add my own context menu there.

It turned out that I had to remove all the source folder entries in the project’s run configuration (see in the image above).

Categories
Actionscript Adobe Air Flash flex

Flex Does Not Find Resource Bundles

LocalizationProblem

Recently I had the problem that my Flex code, which used the ResourceManager, would not find the resource bundle, which contained all resources for my application. However, the application compiled but it would always crash whenever the first time a resource should be loaded. I checked my compiler arguments a 1000 times but everything was correct and did work well in another Flex application. The problem was that my resource bundle was not present in the ResourceManager, it just did not load it.

Categories
Actionscript Flash

Save XML and text files from Flash to your HD with AS3 and PHP

In this post I’ll show how to save a file from AS3 to your local HD. In another post I’ve explained how to load a file from HD to Flash.

For a project I’ve been looking around for a decent solution to the problem of saving a text file (to be more precise XML file) from Actionscript 3 to my local harddisc but i couldn’t find a solution for this (what not necessarily means that there is none).

Saving and loading can be smoothly achieved with Adobe Air but not with Flash because Flash has been designed to run on the web. However, it is possible to download and upload files via AS3 on and from your HD to and from a webserver. Think of an Flash MP3 shop: You can click on an MP3 in Flash and you will be asked where to save the file and afterwards the file is being downloaded to the chosen location on your HD. So it must be somehow possible.

Additionally, it is possible to create XML or other text in Flash and store it on a webserver and vice versa.

Thus I came upon following solution:

Howto save and load text files with AS3
Figure 1: Howto save and load text files with AS3

Categories
Actionscript Flash Multi-Touch

Digital Volvelles application video

Quite some time since the actual private view at the Mall Galleris in London I have managed to put a little video about our Digital Volvelles application online. A more detailed video is going to come but until then watch this video please: