1 person found this helpful
As far as I know, this isn't possible. The .db file is a stand alone file, and not something that can be embedded into a swf. However, you can package it in your .air installer file:
Thank you. Very sorry.
Another solution of my problem would be to encrypt the database file. I see that the method 'openAsync' allows to decrypt the database. But how do I encrypt it?
flash.data.SQLConnection.openAsync(reference:Object=null, openMode:String="create", responder:Responder=null, autoCompact:Boolean=false, pageSize:int=1024, encryptionKey:ByteArray=null):void
OK, it is clear how to decript when i open my file. But I need to encrypt.
I want to encrypt my database.
I worked with an example http://www.adobe.com/devnet/air/flex/quickstart/articles/encrypted_database.html
In the example of my *.db file size is 500 kb. After set password i get encrypted file is created in a folder AppData with the same name, but as small as 1 kb.