zahimezher
asked on
flash drop down menu
I have a website with a cms
In the CMS i can create types( a, b, c)
these types are saved on sql and information can be inserted in each.
a(1, 2, 3)
b(1, 2, 3)
c(1, 2, 3)
in my flash header i have a drop down menu thats supposed to read these types that were created in sql through the cms
I cant creat the drop down menu in advance because my client might add a new type and it has to appear in the menu along side the others that were created so far
n e one?
In the CMS i can create types( a, b, c)
these types are saved on sql and information can be inserted in each.
a(1, 2, 3)
b(1, 2, 3)
c(1, 2, 3)
in my flash header i have a drop down menu thats supposed to read these types that were created in sql through the cms
I cant creat the drop down menu in advance because my client might add a new type and it has to appear in the menu along side the others that were created so far
n e one?
ASKER
do u have an example file or a link to a tutorial or something.
I have no idea how this works and cant make anything of what ...
thanx alot though. sry!
I have no idea how this works and cant make anything of what ...
thanx alot though. sry!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
;) thanx for the help
e.g.,
// php file
<?php
// connect to your server, pick the database
$xml = "<?xml version='1.0' ?>";
$result = mysql_query("select * from table");
while($row = mysql_fetch_assoc($result)
$xml .= "<somenode>" . $row["someprop"] . "</somenode>";
// etc..
}
// actionscript
var loader:URLoader = new URLLoader();
loader.addEventListener(Ev
loader.load(new URLRequest("that-php-file.
function onLoaded(event:Event):void
var xml:XML = new XML(event.target.data);
foreach(var node:XML in xml){
// do stuff...
}
}