5 Most Recent (5)
    Text Editor (1)
    File System (2)
    List Box (5)
    Color Palette (1)
    Combo Box (8)
    Custom (3)
    Scroll Bar (1)
    Radio (1)
    Tree (1)
    Bar Chart (2)
    Ticker (2)
    Pie Chart (1)
Publisher:  Macromedia Component Set 1
Implemented By:  flash-db http://www.flash-db.com/Components/
A Combo Box populating a List Box - for a simple product catalog.
Shows how one XML data source can create a Combo Box - which can be selected to populate a List Box, then the List box can be clicked to show a product descript. Could be the basis for a more complex Product Catalogue.
<?php
// This array would normally be coming from a database
// We just simplified it by putting it in an Array for now.
$NameArr = array("Software""Books""Music");
$DataArr = array("Flash MX, Adobe Photoshop, Mandrake Linux, Apache Web Server""PHP for Flash, XML and Flash, PHP and MySQL, XML for dummy's""Alkaline Trio, Hot Water Music, Jimmy eat world");
$desc = array("Flash MX from Macromedia /n Price: 500$, Photoshop - A image/photo editing tool from Adobe, One of the best Linux Distributions, The best Web server on the planet""A great book from friends of Ed, XML Studio Lab from Friends of Ed, Great PHP and MySQL book, Need help with XML""Buy the latest CD, The new Hot Water Music CD, Just came out with a new CD.");
$numReturn count($NameArr);
$i 0;

// Prints out the necessary XML
print "<dataSet>";
    while (
$i $numReturn) {
        print 
"<data>";
        print 
"<name>".$NameArr[$i]."</name>";
        print 
"<dataRow>".$DataArr[$i]."</dataRow>";
        print 
"<desc>".$desc[$i]."</desc>";        
        print 
"</data>";
        
$i++;
    }
print 
"</dataSet>";
?>
   download component source files (zip)


Area Map: Home | About | Extend | Links | Commercial | Submit Component    
< / form > < !-- Google analitycs -->