Basic thing about StageWebView class is that it is used to display html content in your app. To be more clear on that it is ‘rendered above all display list content’. Now having said that you cannot place/put other content like flex controls/components like a Button or List on above it.
As always lets do things in steps.
- Create necessary variables.
- Open connection to database file already created.
- Read schema from opened connection to database.
1. Create necessary variables
private var sqlConnection:SQLConnection; private var dbFile:File; private var sqlStatement:SQLStatement;
2. Open connection to database file already created
dbFile=new File(); dbFile=File.applicationStorageDirectory.resolvePath("myDatabase.db"); sqlConnection = new SQLConnection(); sqlConnection.addEventListener(SQLEvent.OPEN, onDBOpened); sqlConnection.addEventListener(SQLErrorEvent.ERROR, onDBError); sqlConnection.open(dbFile);
3. Read schema from opened connection to database
Read the rest of this entry »
Few months back i have made a post relating to my first simple AIR App. And the download to that AIR App is here.
Description About AIR App:
Its a window App with simple three controls. A Textinput , A Button and a Html Component. The TextInput takes the text to search and on press of search Button it seands the search text to the GooGle server and gets the result and displays it on the below Html component. The use of this is ??, you can figure it out as per the need.
finally DownLoad it here.
Enjoy my first Simple AIR App. 🙂