[RESOLVED] images do not scroll with the list

i am creating a list and while creating i add images to the list. if i set the visibility of the images false initially… how can i set the image visibilty true when the list row is clicked.

Otherwise if i dont add images while making the list then images dont scroll with the list.
i’m stuck people. help me. i can post code. if its required. [import]uid: 214977 topic_id: 35584 reply_id: 335584[/import]

  1. images don’t scroll with the list unless you :insert them into the list display group.
  2. if you have a touch listener function assigned to the image, you could use event.target.isVisible = true [import]uid: 41884 topic_id: 35584 reply_id: 141408[/import]

initially i have set the image visibility to true.i have added text and image in a row. i just want the visibility of the image false when i touch the row. if i use event.target.isVisible=false. it deletes the entire row.

how can i just remove the image not row? [import]uid: 214977 topic_id: 35584 reply_id: 141411[/import]

initially i have set the image visibility to true.i have added text and image in a row. i just want the visibility of the image false when i touch the row. if i use event.target.isVisible=false. it deletes the entire row.

how can i just remove the image not row? [import]uid: 214977 topic_id: 35584 reply_id: 141412[/import]

  1. You need to insert the image into the rowGroup.
  2. In your rowTouch function, in the “release” phase, you need to use:
rowGroup[x].isVisible = false

…but you need to figure out what number “x” is. If it’s the last object you insert into the group, rowGroup.numChildren might work.
[import]uid: 41884 topic_id: 35584 reply_id: 141415[/import]

it worked. thanks :slight_smile: [import]uid: 214977 topic_id: 35584 reply_id: 141436[/import]

  1. images don’t scroll with the list unless you :insert them into the list display group.
  2. if you have a touch listener function assigned to the image, you could use event.target.isVisible = true [import]uid: 41884 topic_id: 35584 reply_id: 141408[/import]

initially i have set the image visibility to true.i have added text and image in a row. i just want the visibility of the image false when i touch the row. if i use event.target.isVisible=false. it deletes the entire row.

how can i just remove the image not row? [import]uid: 214977 topic_id: 35584 reply_id: 141411[/import]

initially i have set the image visibility to true.i have added text and image in a row. i just want the visibility of the image false when i touch the row. if i use event.target.isVisible=false. it deletes the entire row.

how can i just remove the image not row? [import]uid: 214977 topic_id: 35584 reply_id: 141412[/import]

  1. You need to insert the image into the rowGroup.
  2. In your rowTouch function, in the “release” phase, you need to use:
rowGroup[x].isVisible = false

…but you need to figure out what number “x” is. If it’s the last object you insert into the group, rowGroup.numChildren might work.
[import]uid: 41884 topic_id: 35584 reply_id: 141415[/import]

it worked. thanks :slight_smile: [import]uid: 214977 topic_id: 35584 reply_id: 141436[/import]