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

  • SEARCH
  • Home
  • 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 7917247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:04:52+00:00 2026-06-03T15:04:52+00:00

Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken)

  • 0

Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken) as an example, and there is one part of codes that does not work:

private function resault(e:SQLEvent):void
{
    // with sqls.getResault().data we get the array of objects for each row out of our database
    var data:Array = sqls.getResult().data;
    // we pass the array of objects to our data provider to fill the datagrid
    dp = new ArrayCollection(data);
}

Checking the program during runtime gives me that sqls.getResult() returns a valid SQLResult object, but its data is null.

And from my previous question Adobe Air: convert sqlite's result [object Object] to String?, it seems I am asking the wrong question.

Nevertheless, I’ve checked my SQLResult object with

trace(ObjectUtil.toString(sqls.getResult()));

and I can see that I got all of my content from sqlite:

(flash.data::SQLResult)#0
  complete = true
  data = (Array)#1
    [0] (Object)#2
      first_name = "AAA"
      id = 1
      last_name = "BBB"
    [1] (Object)#3
      first_name = "AAA"
      id = 2
      last_name = "BBB"
    [2] (Object)#4
      first_name = "qqq"
      id = 3
      last_name = "qqq"
  lastInsertRowID = 0
  rowsAffected = 0

So what’s going on here? Do I really have to create my own function to parse all of my sqlite elements and then place them in the data provider myself? Yes, I can do that, but seriously, many tutorials have shown using:

var data:Array = sqls.getResult().data;
dp = new ArrayCollection(data);

Now, back on the question: What might be the possible causes of sqls.getResult().data becoming null?

  • 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-06-03T15:04:54+00:00Added an answer on June 3, 2026 at 3:04 pm

    That doesn’t look like a very good tutorial you’re following there (in my opinion). In that code, you have one event listener for all the statements that are being executed. It even has just one SQLStatement that executes different queries. I don’t know exactly what is going wrong with your code, but I’m fairly certain the cause is to be found there. (And don’t even get me started about that Timer used as a delay when a statement is still executing. Yuck!). I strongly suggest you look for a better source for learning Flex/AIR/SQLite.

    You should simply create a new SQLStatement, or at least discrete event handlers for each Statement execution. A better way to do this, would be to use the Responder class, like this:

    var stmt:SQLStatement = new SQLStatement();
    stmt.sqlConnection = connection;
    stmt.text = query;
    
    var token:Responder = new Responder(onResult, onFail);
    stmt.execute(-1, token);
    

    The SQLConnection can be shared though, if you don’t mind keeping the connection to your database open all the time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Flash Builder 3 to edit my Flex app, but I noticed that
I'm developing an application using Flas Builder / Flex for Adobe Air. This application
Well i am using following tools flex builder 3.2 sdk 4.1 Flash Player 10
I'm using Flash Builder 4.6. As a simple example, say I have the following
I'm developing a Adobe AIR application using Flash Builder 4. This app needs to
I installed SVN using the instruction give here: http://alvijee.blogspot.com/2010/08/setting-up-subversion-with-adobe-flash.html I did select JavaHL Native
I'm using Flash Builder 4 (the version after Flex Builder 3, so very similar
Recently I'm working on some air stuff, and I am using Flash Builder and
In my Flex 4 app, I access an RSS feed (I'm using http://news.ycombinator.com/rss as
when tried to build a AIR application for android using flex builder I did

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.