import flash.data.*; import flash.filesystem.File; private var dbConn:SQLConnection = new SQLConnection(); private var dbStatement:SQLStatement = new SQLStatement(); private function init(): void { // create a seed string of your choice var mySeed:String = “AIR15IsAGreatProduct”; // prepare a bytearray variable to hold the encryption key var myKey:ByteArray = new ByteArray(); // create the myKey ByteArray var [...]
Here is a very simplistic Flex Builder 3 and AIR example that adds and removes records from a table in a local SQLite database. This is not a fully completed AIR project but this code can probably be reused by anyone wanting to get started with AIR+SQLite. There are a couple of other AIR+SQLite [...]
วันนี้นั่งงงกับการลบ ShareObject ของ Flash ว่าทำไม ลบแล้วยังดึงค่า username และ password จาก EncryptedLocalStore มาได้อีก ที่แห้ก็พึ่งรู้ว่ามันดันแยก AIR ออกไปไกลเลย โดยสำหรับ Windows XP จะอยู่ที่ Path นี้ครับ
SharedObject
C:\Documents and Settings\User\Application Data\Macromedia\Flash Player\#SharedObjects
EncryptedLocalStore
C:\Documents and Settings\User\Application Data\Adobe\AIR\ELS
- -*
พอดีว่าวันนี้ ตั่งใจเปลี่ยน file download ใน flex จากเดิม ใช้ navigateToUrl(urlRequest) ให้เป็น fileReference.download(urlRequest) ปรากฏว่าเจอ error 55+
Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
เนื่องจากว่า Flash player 10 มันมี security check ไว้ ถ้าจะใช้ไฟล์ดาวโหลด ต้องเป็น event ที่มาจาก User interface [...]