5, Friday f, 2010 - 8:09 am
Tags: actionscript, flex
Posted in actionscript | No comments
Today I’m gonna show you a secret ninja technique to extract hours, minutes and seconds from a number (representing an amount of seconds). In my example I will show an Actionscript code, but this can be implemented in JavaScript and maybe other languages too.
So, the scenario is the following: we have a number representing seconds [...]
4, Monday f, 2009 - 2:57 pm
Tags: air, asdoc, documentation
Posted in actionscript, air | No comments
This is just a quick post that may (I hope) help who are going to use asdoc tool to generate Actionscript documentation for AS classes which use AIR framework.
Problem:
You want to generate documentation for your package(s), but when you type asdoc command in the terminal you get a lot of errors such:
Type was not found [...]
21, Tuesday f, 2009 - 11:48 am
Tags: air, apps, money, shareware, software
Posted in air | No comments
I just discovered Sharify, an interesting service which goal is to provide AIR developers the tools for create shareware (sellable) applications.
It seems also very easy to use, the steps are: register to the site, create an application id, integrate the sharify library (an swf file) into the application and choose a payment method (like paypal). [...]
7, Tuesday f, 2009 - 6:49 am
Tags: actionscript, flex, RSL, swc
Posted in flex | No comments
When we need to use a series of Actionscript classes in several projects and centralize them into a single place, the best option available is to deploy our classes as an SWC library and then add it to the “library path” under Flex Builder’s “build path” panel.
Deploy an swc file
To obtain an SWC file, we [...]
I was looking for an elegant solution to implement multiple filter functions on an ArrayCollection (which provides a method filterFunction() that can be assigned dynamically in order to filter data inside the collection). The first and only valid solution I found was that one from Cristian Rotundu, he has extended ArrayCollection class providing a filterFunctions [...]
30, Monday f, 2009 - 2:21 am
Tags: actionscript, design patterns
Posted in actionscript | 2 comments
The objective of the decorator pattern is to provide a way to add extra features and responsibilities to a class at runtime without to subclass it.
The classes diagram of this pattern is composed by an interface or an abstract class which will define the supertype of the class that will be extended (decorated) by one [...]
18, Wednesday f, 2009 - 3:40 pm
Tags: actionscript, flex
Posted in flex | 10 comments
I was trying to set the columns of a DataGrid to a certain percentage, but I discovered that inexplicably DataGridColumn doesn’t provide percentageWidth property nor it accepts a percentage string as width property… so I did a quick search on google and I found that is sad but true and moreover the solution I found [...]
Today is the day of the little big discoveries. I realized that the parseInt() function, which objective is the same in both languages (Actionscript and Javascript), is a bit different between them. In Actionscript the function is based on base 10 numeration, in Javascript instead the funny thing is that it try to guess the [...]
23, Monday f, 2009 - 11:19 am
Tags: actionscript, debug, flex, logging, programming
Posted in flex | 5 comments
In these days I played with Flex’s logging framework and I extended it to write log messages to files, both plain text .log files and dynamic HTML, CSS formatted and Javascript powered files with the ability to filter message type (debug, error, fatal and so on).
The logging framework is a powerful feature that comes with [...]
After valuate my own realization of a certain library, I opted to try the porting of an already existent one… which is made in Java. This library has a lot of classes and interfaces and the manually translation would be very time-expensive, considering also that it uses a lot of classes and functions which are [...]