hi, Im working on a database driven site that currently uses flash to display records and a few other things. since the site is ecommerce, im thinking of replacing the flash with javascript (tho i hate to do it).
anyways, i dont know if this will help you but heres are what i consider the 2 most importand things i learned while on this project [
http://www.littlekidscloset.com ]
// src = asp
// use this to send data from asp to flash
// read records from database and display record data in flash object....
///////////////////////////////////////////
while (reading records)
{
<tr><td><embed [params] src='MyFlashRecordDisplay.swf?Id=12345&Price=$3.99&Desc=Some Description'
</embed></td></tr>
}
// src = actionscript
// use this to send data from flash to asp
// post to a page using forms instead of querystring
/////////////////////////////////////////////
on (press)
{
frmSendData = new LoadVars();
frmSendData.szLoadPage = "1"; // Home Page
frmSendData.szUserLogin = "Th3Boxtorz"; // User Name
frmSendData.szTotalCost = "4.28"; // Total Cost to User
frmSendData.send("index.asp", "_parent", "POST");
}
- // src = asp
- // use this to send data from asp to flash
- // read records from database and display record data in flash object....
- ///////////////////////////////////////////
- while (reading records)
- {
- <tr><td><embed [params] src='MyFlashRecordDisplay.swf?Id=12345&Price=$3.99&Desc=Some Description'
- </embed></td></tr>
- }
- // src = actionscript
- // use this to send data from flash to asp
- // post to a page using forms instead of querystring
- /////////////////////////////////////////////
- on (press)
- {
- frmSendData = new LoadVars();
- frmSendData.szLoadPage = "1"; // Home Page
- frmSendData.szUserLogin = "Th3Boxtorz"; // User Name
- frmSendData.szTotalCost = "4.28"; // Total Cost to User
-
- frmSendData.send("index.asp", "_parent", "POST");
- }