I am creating a sqlite database for my mobile app. once the user has supplied the correct password the database is opened. Various screens of the application will need to read and write data from the db. is there a way I can make the connection global when I open it, so it can be accessed from any view?
the code I am useing to open the DB is
var sqlConnection:SQLConnection = new SQLConnection();
sqlConnection.addEventListener(SQLEvent.OPEN,sqlOpenSuccess);
sqlConnection.open(DBFile, SQLMode.CREATE, false, 1024,null);
Thanks
JaChNo