<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/actionscriptsql/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/actionscriptsql/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 24 Feb 2013 23:02:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/actionscriptsql/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/actionscriptsql/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A helper class that allows you to open a database file and run a select, update, delete or any valid sql command against the file in two lines of code. No need to &lt;/p&gt;
&lt;p&gt;worry about the event handlers and opening the connection properly or creating the SQL statement object etc.&lt;/p&gt;
&lt;p&gt;I'm assuming you know the basics of actionscipt, packages and SQL.&lt;/p&gt;
&lt;p&gt;1)Extract "SQLITE_AS_HELPER.zip" and place the the com folder where your fla file is.&lt;/p&gt;
&lt;p&gt;2)In your actionscript import the package using:&lt;br /&gt;
import com.uss.db.*;&lt;/p&gt;
&lt;p&gt;3)The following methods should be of most interest:&lt;br /&gt;
SqlDb(db:String) --The contructor, here you must pass the file name of your datbase.&lt;br /&gt;
            the class will assume your db file lives in the application directory&lt;/p&gt;
&lt;p&gt;runSQL(sql:String) -- This method will run the sql string you pass in on the database&lt;br /&gt;
              you selected in the constructor.&lt;/p&gt;
&lt;p&gt;4)The following properties should be of most interest:&lt;br /&gt;
traceEnabled:Boolean -- This property specifies if you would like the class to trace&lt;br /&gt;
                the results of your commands etc. to the output window in flash&lt;/p&gt;
&lt;p&gt;resultObject:Object  -- After a select statement this object gets populated with the &lt;br /&gt;
            with the results returned by the select statement.&lt;/p&gt;
&lt;p&gt;Example Usage:&lt;br /&gt;
import com.uss.db.*;&lt;br /&gt;
var usersDB:SqlDb = new SqlDb("users.db");// Opens the users.db file for reading and writing.&lt;br /&gt;
usersDB.traceEnabled = false;//Disables tracing to the output window.&lt;br /&gt;
usersDB.runSql("Select * from test");//Runs a select to return all rows in the 'test' table&lt;br /&gt;
trace(usersDB.resultObject&lt;span&gt;[0]&lt;/span&gt;.name);//Traces the column named "name" in the first row returned by the select statement&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">arthurchad</dc:creator><pubDate>Sun, 24 Feb 2013 23:02:10 -0000</pubDate><guid>https://sourceforge.netcfa430ed5b7fb9b92f1518170a81011968aba74a</guid></item><item><title>WikiPage Home modified by arthurchad</title><link>https://sourceforge.net/p/actionscriptsql/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/actionscriptsql/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;a href="/u/arthurchad/"&gt;arthurchad&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;span class="download-button-512a98107929e54f69842221" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">arthurchad</dc:creator><pubDate>Sun, 24 Feb 2013 22:45:37 -0000</pubDate><guid>https://sourceforge.net30aab96b600ecc40cb83818f50aa7c4d9d1f8037</guid></item></channel></rss>