First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Sas Jacobs | Website: http://www.sasjacobs.com

Loading a ComboBox from a file

by Sas Jacobs


The UI components in Flash MX are very user friendly. You can create forms easily and add elements such as radio buttons, combo boxes and push buttons.

This tutorial deals with the ComboBox component. You can enter the values for the ComboBox directly into your movie using the property inspector. You can also load them from an external data source, the topic of this tutorial.

The tutorial demonstrates how to load a list of web sites into a ComboBox from an external data source. The source could be a text file - including an asp, cold fusion or PHP file - or it could be an XML file.

Loading external information is quite different depending on whether the source is a text file or an XML file. So, the tutorial is divided into two main sections and there are two source files: loadingComboFromText.fla and loadingComboFromXML.fla.

The tutorial is divided into the following parts:

  • The ComboBox component
  • Loading information from a text file - text file structure
  • Connecting the movie to the text file
  • Checking that the text file has loaded
  • Loading text file information into the ComboBox component
  • Adding a change handler
  • Loading information from an XML file - XML file structure
  • Connecting the movie to the XML file
  • Loading XML information into the ComboBox component

The tutorial assumes that you know how to use Flash MX and that you have an understanding of actionscript.

» Level Intermediate

Added: 2002-08-13
Rating: 7.27 Votes: 30
(10 being the highest)
» Author
Applications Developer Marconi Australia
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.