Calling EZDB from Flash
April 17, 2000
We are now ready to call EZDB from our Flash movie. Basically we
are going to change the url in the action we created in the first
frame.
- Open the frame properties dialogue for frame 1.
- Highlight the LoadVariables action.
- In the URL field, enter the path location where you installed
EZDB, relative to the location of the Flash movie on the server:
../../cgi-bin/ezdb.cgi?
(You may have to fiddle with this to get the correct path).
- Now tack on instructions to the script on what to display to the
end of the path: bubba+retrieve+display
(if we had more than one record in the database bubba, we would
also have to add the record number, or pkey. In other words, for
a database with more than one entry, the full path would look like
this:
../../cgi-bin/ezdb.cgi?bubba+retrieve+display+902934847
- The last number is the record's Primary Key, or pkey).
- Click ok.
Upload and serve hot. Feeds thousands.
Note that the Flash movie will not load the variables from EZDB
until it is placed in a directory on your server.
Now Bubba can update his listings through his browser and Flash
can read the database entry. You will want to set up a user ID
and password in EZDB for Bubba, allowing him to change entries
only.
If you got lost, download
plex_02.fla and compare. If you didn't
get lost, change the name of your working published movie to
plex_02.swf so that we can work with it in the next section.
The Simplest HTML You Will Ever Code
Tricks & Data, Flash Yin & Yang
Flash With Panache
|