Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6184209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:29:51+00:00 2026-05-24T01:29:51+00:00

When using a List component, instead of a Repeater, how do I transfer a

  • 0

When using a List component, instead of a Repeater, how do I transfer a value from the dataprovider to the itemRenderer?

For example, I have an array collection (projectsAC) that contains arrays with the following structure:

projectsAC(
    0:
        Array(
                0:number
                1:string
                2:string
                3:string
                4:XMLList
        )
    1:
        Array(
                0:number
                1:string
                2:string
                3:string
                4:XMLList
        )
    Ect.....
)

I use this array collection as the data provider and a custom module for the item renderer.

How do I access the array values from within the module? I’ve got the following so far:

<mx:List id="directorsPrepList" dataProvider="{projectsAC}" itemRenderer="modules.project" />

Here’s what my projects module looks like right (just for testing purposes)

<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:Scheduler="modules.*" layout="absolute" creationComplete="init();">
    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;

            [Bindable] public var allData:Array = data as Array;

            private function init():void
            {
                Alert.show(String(allData[0]));
            }
        ]]>
    </mx:Script>
</mx:Module>

The program stalls during it’s initialization… see anything wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:29:52+00:00Added an answer on May 24, 2026 at 1:29 am

    how do I transfer a value from the dataprovider to the itemRenderer?

    The list class does this automatically. Each itemRenderer has a data property. And your dataProvider’s object is set as part of that data property.

    It looks like, given your dataProvider, you are passing each individual the renderer an array. If such is the case, you will have to create your own renderer. It looks like you’ve done that (modules.project), but you didn’t show us the code.

    To make the itemRenderer update itself whenever the data updates, you’ll have to either override the set data method or listen to the dataChange event.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a List component using multiple item renderers determined by the itemRendererFunction. When
I have a list component which is filled out using a data store(data loaded
I have a code like this: <mx:Repeater id=allItemRepeator dataProvider={_model.allItems} > <components:ComponentSelector id=componentSelector dataLoad={allItemRepeator.currentItem} />
I am developing a component that can list files that users select from their
I'm using an array to populate a DataProvider, which I'm using to populate a
I am using a HorizontalList component to display a list of images, you can
I am using List component iReport the data is populating but the pdf has
I have a problem with my composite component in JSF2. I implement a list
I'm using custom renderer on JList, but none of components rendered are accessible. list.setCellRenderer(new
I'm .net newbie starting one project for fun. I'm using list box filled with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.