Download Print this page

Create The User Interface - MACROMEDIA FLASH MX 2004-DATA Tutorials Manual

Advertisement

Create the user interface

You will begin by creating a user interface, which displays the information in the XML file.
Create a new Flash document using Flash MX Professional 2004. Make sure your computer is
1.
connected to the Internet.
From the Components panel, drag an XMLConnector component to the Stage. In the Property
2.
inspector, enter the instance name timeInfo_con.
In the Component inspector or the Property inspector, click the Parameters tab. For the URL
3.
parameter, enter data.xml, and for the Direction parameter, select Receive from the pop-up
menu.
From the Components panel, drag a DataSet component to the Stage. In the Property
4.
inspector, enter the instance name timeInfo_ds.
On the Stage, select the XMLConnector component. In the Component inspector, click the
5.
Schema tab. Select the
XML File button, at the upper right of the Schema tab.
Note: Alternatively, you can select Import XML Schema from the Component inspector title bar
menu.
Browse to where you saved the data.xml file, and select the file.
6.
The Schema tab now shows the structure of the data in the file. The
ActionScript array of anonymous objects, because it repeats several times within the XML file.
Any subnodes or attributes directly under the row node are considered properties of the
anonymous objects contained within the array.
For more information about how Flash translates XML documents into an internal schema
representation, see the "Data Integration" chapter in Using Flash (in Flash, select Help >
Using Flash).
12
XML Tutorial: Timesheet (Flash Professional Only)
property, then click the Import a Schema from a Sample
results:XML
node is mapped to an
row

Hide quick links:

Advertisement

loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-DATA and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript