If you ever used the floodFill() method that is provided in the AS3 BitmapData class, you know that it doesn’t always act like it’s supposed to. For those of you unfamiliar with it, the The floodFill() method is similar to the paint bucket tool in various paint programs. The signature of the method looks like [...]
Archive for ActionScript 3
Solving the “missing AIR application XML file” error in Flash Builder
When creating an AIR project, you automatically get an XML configuration file for your application, which contains the initial width and height, the available icons and the indication whether or not the application uses a custom chrome (amongst other settings). This XML file has the same name as the application itself, followed by “-app.xml”. OK, [...]
Actionscript3 tip: faster property initializing
I was looking for a way to set parameters more quickly to newly added childs and I found out something interesting. (Note that this will not result in faster code execution, it’s merely to type less . I did some testing for the performance, check it out at the bottom of the page.) Normally when [...]
How does Flex know an HTML popup has been closed?
Imagine a situation where you have a Flex application and you need to display a popup window in which an external application is doing something else with the same data. You don’ have control over the external application, but you know it is written in HTML and PHP. Imagine also that your Flex application needs [...]
An update to a simple facade
I developed a small flash component that keeps track of all the notifications (using my simple facade) that are send within your flash application. It will show you in a log format which notifications have been sent and also gives you an overview of which class is connected to which notification type. Of course this [...]
Creating cool text effects with actionscript 3
With the introduction of actionscript 3, one of the classes that came with a lot of new features is the Textfield class. To be more specific, we now have access to more information about the textfields content such as character, paragraphs and line metrics. The goal in this blog post is to show you how [...]
fl packages in flex/flash builder
Recently I tried using Five3D in a pure AS3 project using flex builder 3. Everything went well upon compiling, it was nagging that it (FB) couldn’t find the fl.motion.Color class. I looked into the Five3D code and it is indeed using the Color class to simulate basic shading. And actually that error wasn’t so weird [...]
A very simple facade
In one of our latest project we wanted to use some sort of an event system that would make it possible for components to dispatch events to each other even though they are not aware of each other or are not in the same displaylist structure. In that last example we would just use the [...]
SQLite database updates: the necessary heavyweight solution
A while ago, I’ve written my first real, technically complex AIR application for a client. Like I mentioned in another post then (http://blog.multimediacollege.be/2009/03/using-the-local-encrypted-database-in-air-theory-and-practise/) , the theory and practice of the SQLite database that is shipped with AIR don’t always match. And so, now I had to find out another annoying thing about this very very [...]
Creating your own Flex validator class
Every once in a while you come across a problem you can’t fix with the basic components provided by a certain kind of technology. OK, so I lied: Very often you come across a problem you can’t fix with the basic components! Flex is not different at all. It has some good basic validator classes, [...]