JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



XML Combobox


R

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam rachjm
Posts: 364 - Registered: 2008-03-26

I'm trying to use AS3 to populate a combobox using external XML.
I know it can be done, but my web searches turn up mostly questions, rather than answers.

My XML (companies.xml) looks like this:

<?xml version="1.0"?>

<companies>

<company name="Company1"></company>
<company name="Company2"></company>
<company name="Company3"></company>

</companies>

It really is that simple, but I need to do it externally because it will be regularly updated by someone who doesn't have flash installed.

All I have for ActionScript so far is:

import fl.controls.ComboBox;
import fl.data.DataProvider;

var combo_IMs:ComboBox = new ComboBox();
combo_IMs.setSize(150, 22);
combo_IMs.move(20, 20);
addChild(combo_IMs);

I have been trying all day with no success - what you see above is the only part that works. It can't be that hard! Please help me!

Failing that, could someone just point me in the direction of a good tutorial with sample files?




J

keyboard_arrow_up
0
keyboard_arrow_down


Reply #1 Mark as Spam Jit
Posts: 1 - Registered: 2007-01-11

hm...interesting..