Saturday, October 29, 2011

The GesturePopUp class

Just found this awesome example on Gesture. A gesture starts with a mouse down on a box and ends after the user has moused over several boxes and releases the button.






source

Saturday, October 22, 2011

How to drop a SQLite database

To "drop" a SQLite database, all you have to do is delete the SQLite database file you were accessing.


Just awesome ;)

How to know does a table exist in Adobe AIR SQLite


public function doesTableExist(connection:SQLConnection, tableName:String):Boolean{
    connection.loadSchema();
    var schema:SQLSchemaResult = connection.getSchemaResult();

    for each (var table:SQLTableSchema in schema.tables)
    {
        if (table.name.toLowerCase() == tableName.toLowerCase())
        {
            return true;
        }
    }
    return false;
}

source

Freelance