Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6166131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:17:12+00:00 2026-05-23T22:17:12+00:00

im having some problems trying to read a SQlite data base from flash using

  • 0

im having some problems trying to read a SQlite data base from flash using AS3.
The data base was created with this php script:

$db = new PDO('sqlite:abaco.sqlite');
$db->exec("CREATE TABLE 'abacodata' ('mod' varchar(25) NOT NULL,'name' varchar(25) NOT NULL,'pos' int(3) NOT NULL,'posx' int(11) NOT NULL,'posy' int(11) NOT NULL,'image' varchar(50) NOT NULL,'type' int(1) NOT NULL);");  
$lines=file("TEMPDATA.txt");
foreach($lines as $v) {
   $values = explode(',',$v);
   $sql = "INSERT INTO abacodata VALUES ('".$values[0]."', '".$values[1]."', '".$values[2]."', '".$values[3]."', '".$values[4]."', '".$values[6]."', '".$values[5]."');";
   $db->exec($sql);
}

As you can see, this creates a database like this:
enter image description here
After this i need to read this database in AS3, using this very simple script:

trace("INITIATED");
import flash.filesystem.File;
import flash.data.*;
var dbFile:File= File.applicationStorageDirectory.resolvePath("abaco.sqlite");
var sqlConn:SQLConnection = new SQLConnection();
var sqlStatement:SQLStatement = new SQLStatement();
sqlConn.open(dbFile);
sqlStatement.sqlConnection = sqlConn;
sqlStatement.text = "SELECT * FROM abacodata;";
sqlStatement.execute();
var result:Array = sqlStatement.getResult().data;
trace(result[0]['mod']);

The script achive to conect to the file, but it cant locate the table!;
enter image description here

Any one have any idea of what am i doing wrong? Thanks alot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:17:13+00:00Added an answer on May 23, 2026 at 10:17 pm

    Can you see if you actually connected to the correct database file?

    I’d check the 3 following things:

    1- Does the file object point the correct file; you can check this by tracing nativePath:

    trace(dbFile.nativePath);
    

    2- Make sure that when you open that db, you open the existing db instead of creating a new one. Open your connection this way; if the db file doesn’t exist, you’ll get an error:

    sqlConn.open(dbFile, SQLMode.READ);
    

    3- Finally, make sure your table exists by querying the sqlite_master table:

    sqlStatement.text = "select * from sqlite_master;";
    sqlStatement.execute();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been having some problems trying to get my PHP running. When I
I'm having some problems with a datagridview element I'm using in VS2008. This DataGridView
I'm having some minor problems with some animations I'm trying to set up. I
I am trying to read a very large file in AS3 and am having
Having some problems while trying to optimize my SQL. I got 2 tables like
I've been having some odd problems with permission in Android. I am trying to
I'm having some problems grokking the .end() function in jQuery. The docs I've read
i'm trying to parse some json in perl, but am having problems with it.
I'm having some problems with the stack in java... I'm implementing quicksort using an
Having problems figuring this out. trying to do a rescue_from NoMethodError, :with => :try_some_options

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.