Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / July 2008



Tip: Looking for answers? Try searching our database.

flash - php - combobox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bossche001 - 08 Jul 2008 09:13 GMT
Hi

I want to fill my combobox component with data that I get from a php script.

This is how I get data from php
&city1=ABBENBROEK&&city2=AFFERDEN&&city3=ALBERGEN&&city4=ALKMAAR&.......

How can I populate my combox?
I want to use loadvars.....

Tx
Tom
bossche001 - 08 Jul 2008 10:41 GMT
Ok, already found it....

For those who are also searhing for ans answer...

var city_lv:LoadVars;
city_lv = new LoadVars();
city_lv.onLoad = function(success:Boolean) {
    if (success) {
        trace("succes");
        iList = new Array();

        for (i=1; i<285; i++) {
            myItem = new Object();

            myItem.data = i;
            myItem.label = this["city"+i];
            iList.push(myItem);
            trace(myItem.label);
        }
        stad_cb.setDataProvider(iList);
    } else {
        trace("NOsucces");
    }
};
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.