Since I need to get access to cPanels on all accounts at work. I need to memorize them but still I do not. Specially the webmail. π
AS3 Number Rounding up
There might be a easier way which Adobe made but this is the original way. You can do the same way with even other languages. That is the reason I want to share here. π
AS3 Filling ComboBox with XML data.
It is really easy but I always forget the exact code snippet whenever I need.
There, oils is dataProvider in the ComboBox. π
Type conversion AS3 vs Java
As3 type conversion is very simple, isn’t it? But it gives you trouble as well because it is bit loose language compare with Java. This kind of problem would never happen with java.
Look at the image and see what the problem is. I wasted a whole day for this. π
When you get used to AS3 way of type casting, you would think that is the way to go. But it was not. My guess is, it returns “yeah, it was possible to type cast it.”, Β instead of the type casted value.
Anyway, now I know what I can do when it comes type casting String to Boolean in AS3.
AS3 setFocus – games on MXML
I am making a little game, a tiny one. I decided to make a “stage” with MXML and other classes with AS3. Problem I had had was. I could not get keyboard event on canvas in MXML. It make is crazy! As you might know, it should be such a simple thing. Just I could not! Until I found this simple code line. π
AS3 Combox
There are things you can never ever memorize only because it is too obvious.
I am making little software for me and then I have always problem remembering the syntext “event.target.selectedItem”. Why? I do not know. Because it is too obvious?
Anyway, I am putting here so that it would be easier for me to get help next time.
ArrayCollection to Array
Good code example I found today,
import mx.collections.ArrayCollection;
var arrCol:ArrayCollection = new ArrayCollection();
var arr:Array = arrCol.source;







