4 Replies Latest reply on Aug 9, 2011 12:06 PM by Astraport2012

    How to embed SQLite database to Air app?

    Astraport2012 Level 1

      Now I connect to a database file like this:

       

      var dbFile:File = File.applicationStorageDirectory.resolvePath("myDB.db");

      conn = new SQLConnection();

      conn.openAsync(dbFile);

      conn.addEventListener(SQLEvent.OPEN, openSuccess);

      conn.addEventListener(SQLErrorEvent.ERROR, openFailure);

       

      Tell me please, how do I embed the DB file to the application? I need to have the database inside a swf.