tags:

views:

56

answers:

1
A: 

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
Yeey the error is gone!
Patrick van Marsbergen