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 […]

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).

Flex Does Not Find Resource Bundles

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 […]

Setting the Width and Height of an Object in Flex to 100% with Actionscript

Today I had the problem that i needed to create a Flex element by hand and apply to it a width of 100%. This goes as easy with MXML as this <mx:VBox id="wrapperBox"><mx:UIComponent width="100%" height="100%" id="elementXYZ"></mx:VBox> But you cannot code this to achieve the adding programatically with Actionscript: var elementXYZ:UIComponent = new UIComponent(); elementXYZ.width = […]

Calculate and Set Bounds (Bounding Box) from Points in Google Maps Flash [Update]

I’ve got a list of points in my database, which I want to show neatly in a Google Maps Flash Map. Thus, I … calculate the bounding box around these points calculate the center of this bounding box set the zoom level of the map in a way that the zoomed cutout contains all points […]

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) […]

Google Maps Multi-touch Actionscript Code [Update_3]

After I published my youtube video on the Google Maps multi-touch app I have had some demands for the source code of this Google Maps multi-touch Flash application. Hence, I have decided to make the source code of it publicly available on Google Code. You will find the sources on the mapstouch Google Code download […]