This content has been marked as final. Show 4 replies
Why not just add the image, and then set its visible and includeInLayout properties based on the data?
Wouldn't I then just get one image? Whereas what I want is if the value = 1, display 1 image. If the value = 2, display 2 images. Thus creating a bar of images.
Im actually having trouble adding multiple images to the HBox in the itemRenderer.
I have tried this.addChild(newImage) but this doesn't work
Then just use a repeater, and have the dataProvider be a dynamically created array with the number of items in the array determined by the data value.