Table of Contents
RecordSet Howto
Introduction
This page describes how to setup the RecordSet Flash MX 2004 example application.
Also make sure you have SQLAlchemy >= 0.4.1 installed.
Download
Grab the example from SVN with:
svn co http://svn.pyamf.org/examples/trunk/recordset recordset-example cd recordset-example/python
Alternatively, if you just want to have a look, you can browse the example online.
Database
For this example the records are stored in a SQLite database. To generate the database file run:
python init.py
This will create a file called temp.db in the folder where you execute the command.
Note: when you change the database schema in db.py make sure to delete the database file and run init.py again.
Gateway
The remoting gateway for the Flash/AMF client starts on http://localhost:8000 when you run:
python gateway.py
You should see something like:
Started RecordSet example server on http://localhost:8000
You can also pass one or more parameters (host or port) like this:
python gateway.py --host=192.168.1.100 --port=8080
When you decide not to use the default host or port you will need to change the Actionscript and recompile the SWF as well.
Client
You can simply open the SWF file and it will connect to http://localhost:8000.
Attachments
-
recordset.jpg
(30.6 kB) - added by thijs
10 months ago.
screenshot of flash app
