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

  • Home
  • SEARCH
  • 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 122385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:07:13+00:00 2026-05-11T04:07:13+00:00

So I have a module in flex in which I add a custom component.

  • 0

So I have a module in flex in which I add a custom component. I also have a class that handles the data I want to show, lets call this class DataHandler.

The DataHandler receives data from the back-end solution and then starts putting the data togheter for my Module and the custom component.

When the data is ready it dispatches an event that my Module catch. I send the new data in to my component.

example code for this in Module:

private function onDataChange(evt:Event=null):void {     _customComponent.ItemData = _dataHandler.DataProvider; } 

The _customComponent then gets the data :

public function set ItemData(value:ItemDataVO):void {       _itemdata  = value; } 

// _itemdata is a custom class named ItemDataVO

Now in my custom component I just bind the data to my mxml components , for example

<mx:Label     text       = 'Text: {_itemdata.Text}'    fontFamily = 'Hel'    fontSize   = '12'         x          = '83'     y          = '40' /> 

When I get new data the label automaticly changes.

So far so good. But what I also have in my custom component is i List. And this is my problem. When I bind the data to the List I do the following:

<mx:List    id            = '_list'    dataProvider  ='{_itemdata.Collection}'    itemRenderer  = 'components.renderers.CustomRenderer' /> 

// this _itemdata.Collection is an ArrayCollection that contains a collection of items based on a custom class.

The binding does not work, and I also get a varning for each item in the list at runtime:

warning: unable to bind to property ‘parent’ on class ‘modules::CustomModule’

( I have also tried, as a workaround, to set the _list’s itemrenderer each time the ItemData is set. The new listdata then update but I dont see any visual update in the list. )

Anyone knows how to make this binding work?

Regards Adlertz =)

  • 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. 2026-05-11T04:07:13+00:00Added an answer on May 11, 2026 at 4:07 am

    Have you set the collection property on ItemDataVo to be bindable… something like

    package {     import mx.collections.ArrayCollection;      public class ItemDataVo     {         [Bindable]         public var text : String;          [Bindable]         public var collection : ArrayCollection         public function ItemDataVo()         {         }      } } 

    I have made a simplified working example showing binding working on a model similar to yours (although there will obviously be differences) with binding working correctly so long as both the text and collection properties both have the Bindable meta data attached:

    <?xml version='1.0' encoding='utf-8'?> <mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' layout='vertical' xmlns:local='*' creationComplete='creationCompleteHandler(event)'>      <mx:Script>         <![CDATA[             import mx.collections.ArrayCollection;             import mx.events.FlexEvent;              [Bindable]             protected var itemData : ItemDataVo;              private function creationCompleteHandler(event : FlexEvent) : void             {                 generateItemData();              }              protected function generateItemData() : void             {                 itemData = new ItemDataVo();                 itemData.text = 'New Text With Random ' + Math.random() * 100;                 itemData.collection = generateCollection();             }              protected function generateCollection() : ArrayCollection             {                 var arrayCollection : ArrayCollection = new ArrayCollection();                 arrayCollection.addItem('New Item With Random ' + Math.random() * 100);                 arrayCollection.addItem('New Item With Random ' + Math.random() * 100);                 arrayCollection.addItem('New Item With Random ' + Math.random() * 100);                 arrayCollection.addItem('New Item With Random ' + Math.random() * 100);                 arrayCollection.addItem('New Item With Random ' + Math.random() * 100);                 arrayCollection.addItem('New Item With Random ' + Math.random() * 100);                  return arrayCollection;             }              private function fullClickHandler(event : MouseEvent) : void             {                 generateItemData();              }             private function collectionClickHandler(event : MouseEvent) : void             {                 itemData.collection = generateCollection();             }          ]]>     </mx:Script>      <mx:VBox width='100%' height='100%'>         <mx:VBox>             <mx:Label text='{itemData.text}' />             <mx:List dataProvider='{itemData.collection}' />         </mx:VBox>         <mx:HBox>             <mx:Button label='UPDATE FULL ITEM DATA' click='fullClickHandler(event)'/>             <mx:Button label='UPDATE COLLECTION' click='collectionClickHandler(event)'/>         </mx:HBox>     </mx:VBox> </mx:Application> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 128k
  • Answers 128k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Make sure the server is sending it with a content-type… May 12, 2026 at 5:39 am
  • Editorial Team
    Editorial Team added an answer You will need to give read write permissions to machine's… May 12, 2026 at 5:39 am
  • Editorial Team
    Editorial Team added an answer You need to implement tabBarController:didSelectViewController: on the tab bar's delegate.… May 12, 2026 at 5:39 am

Related Questions

So, what I have is a Flex application that is comprised of about 20
So, I have Flex project that loads a Module using the ModuleManager - not
This question is about a Java JTree or a Window .Net Tree (Winforms) or
hopefully someone can help me with this headache I have. I'm currently running Drupal

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.