[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

AS3/XML parse XML nodes with attributes

Posted on 2009-06-30
1
Medium Priority
?
563 Views
Last Modified: 2013-11-11
Here is the XML section I am trying to load into several dynamic text fields within the Flash piece.  Problem:  I am not sure what to do with the syntax forming of the XML within the AS3 path structure.  It keep erring out.  Please look at my code for the Flash and the XML, which will not be able to be changed.

Within the code below I recieve:
1078: Label must be a simple identifier.
XML node I need to pull in from:
 
<fh:FlightHistory FlightHistoryId="163872441" DepartureDate="2009-06-30 09:00" ArrivalDate="2009-06-30 10:33" PublishedDepartureDate="2009-06-30 09:00" PublishedArrivalDate="2009-06-30 10:33" ScheduledGateDepartureDate="2009-06-30 09:00" EstimatedGateDepartureDate="2009-06-30 09:00" ActualGateDepartureDate="2009-06-30 08:56" ScheduledGateArrivalDate="2009-06-30 10:33" EstimatedGateArrivalDate="2009-06-30 10:21" ScheduledRunwayDepartureDate="2009-06-30 09:07" EstimatedRunwayDepartureDate="2009-06-30 09:06" ActualRunwayDepartureDate="2009-06-30 09:07" ScheduledRunwayArrivalDate="2009-06-30 10:19" EstimatedRunwayArrivalDate="2009-06-30 10:27" FlightNumber="2795" StatusCode="A" Status="Active" CreatorCode="O" ScheduledAirTime="72" ScheduledBlockTime="93" DepartureAirportTimeZoneOffset="-5" ArrivalAirportTimeZoneOffset="-5" ScheduledAircraftType="ERJ" DepartureGate="22" ArrivalGate="B79" TrackingEnabled="False">
        <fh:Airline AirlineCode="XE" Name="Expressjet"/>
        <fh:Origin AirportCode="TUL" Name="Tulsa International Airport" City="Tulsa" StateCode="OK" CountryCode="US"/>
        <fh:Destination AirportCode="IAH" Name="George Bush Intercontinental Airport" City="Houston" StateCode="TX" CountryCode="US"/>
      </fh:FlightHistory>
 
AS3 syntax:
flight_mc.airline_txt.text = contentInput.channel.item.fh:FlightHistory;

Open in new window

0
Comment
Question by:cubical38
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
cubical38 earned 0 total points
ID: 24747254
ANSWER:

URI is found at the top of the XML

namespace someNamespace = //put the namespace URI for fh suffix here
contentInput.channel.item.someNamespace::FlightHistory;
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question