connecting XML data to a component

Posted on 2004-11-17
Last Modified: 2010-04-03
I'm having difficulty binding data generated using the XML object to the List Component. If I use the XML Connector component I don't have any problems binding the data but then I have problems accessing the XML via actionscript. Cany anybody provide me with the correct syntax for binding dynamic data to a component when the dynamic data isn't originating from one of the data components?

brian fidler
Question by:befidled
    LVL 6

    Accepted Solution

    Hi befidled,

    This will help you:

    myDP = new Array();
    list.dataProvider = myDP; // providing data to list component from array

    for (var i=0; i<20; i++) {
      myDP.addItem({label: "string" + i, data: i});
    LVL 1

    Author Comment

    Perfect. Thanks a bunch.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    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.

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now