Were getting there - As you can see the Flash menu above is pulled from the mambo database.
flashblocks now has amfphp flash remoting functionality (coming in the next version!) I will send out a newsletter when it is ready.
basically, you drag the
flashblocks_flashremoting_amfphp shared library item (10k) onto the stage and you will have a new command to work with:
| Code: : |
flashRemoting(command, data to send to script, function to send results to);
|
the menu is pulled from the mambo database like this:
flashRemoting("queryDB", "SELECT * FROM jos_menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' AND access = '0' ORDER BY ordering", displayMenus);
and to trace the first menu name and URL from the database, the displayMenus function would look like this:
| Code: : |
function displayMenus(menu) {
trace(menu.items[0].name)
trace(menu.items[0].link)
}
|
There are several commands created now. These are:
getJpgs
getMp3s
getOnlyMp3sMeta
imageDir
imageDirResize
queryDB
Post edited by: admin, at: 2005/06/07 12:36
Post edited by: admin, at: 2005/06/07 12:37
Post edited by: admin, at: 2005/06/07 12:39
Post edited by: admin, at: 2005/06/07 12:40
Post edited by: admin, at: 2005/06/14 09:26