Cpanel access Methods

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. πŸ™‚

Posted in cpanel | Leave a comment

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 number rounding up

Posted in as3 | Leave a comment

AS3 – Error #1063: Argument count mismatch on Expected 0, got 1.

The called function needs to have a variable.

 

error 1063 Argument count mismatch

Posted in as3 | Leave a comment

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. πŸ™‚

 

xml to combobox

Posted in as3 | Leave a comment

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.

AS3 type conversion problem

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.

Posted in as3 | Leave a comment

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. πŸ™‚

Posted in as3 | Leave a comment

AS3 Randomizer

Very useful function I can use everywhere. πŸ™‚

Posted in as3 | Leave a comment

AS3 Timer

Timer code snipet. πŸ™‚

Posted in as3 | Leave a comment

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.

 

 

Posted in as3 | Leave a comment

ArrayCollection to Array

Good code example I found today,

import mx.collections.ArrayCollection;
var arrCol:ArrayCollection = new ArrayCollection();
var arr:Array = arrCol.source;

Posted in as3 | Leave a comment