RecordSet Howto
Introduction
This page describes how to setup the RecordSet Adobe Flash (MX 2004) example application.
First you need to install the free Flash Remoting components for Adobe Flash MX 2004
or Flash 8.0.
If you want to use Flash Remoting for Actionscript 2.0 in Adobe Flash CS3,
check this page for more info.
Also make sure you have SQLAlchemy >= 0.4.1 installed.
Download
Grab the example from SVN with:
svn export 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 Adobe Flash Player and other AMF clients 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
Python
There is a Python AMF client available that you can start with:
python client.py
To see all available options for the client run:
python client.py --help
Flash
You can simply open the SWF file and it will connect to http://localhost:8000.
Attachments
-
recordset.jpg
(30.6 KB) -
added by thijs 3 years ago.
screenshot of flash app
