Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sun Nov 08, 2009 7:14 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ]  Bookmark and Share
Author Message
 Post subject: XML Combobox
PostPosted: Thu Jun 18, 2009 5:53 am 
Offline
250+ Club
User avatar

Joined: Wed Mar 26, 2008 11:12 pm
Posts: 362
Location: New Zealand
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:

Code:
<?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:

Code:
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! :cry:

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

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley