add to the mx:application tag this option: creationComplete="init()"
and put your code to this function
private function init():void {
var conn:SQLConnection = new SQLConnection();
var dbFile:File = File.applicationStorageDirectory.resolvePath("DBSample.db");
conn.open(dbFile);
...
}
afftee
2009-12-29 12:45:42