[FMX] Need help collecting xml nodes into an array

I’m trying to simulate a collection basket.

I have xml nodes that contain pictures through my flash site.

I want to add these pictures into a collections section by a click of a button in flash.

and in this collections section you can remove these xml nodes

Could anyone show me how some script works in order to do this?

(there will be no pricing just a collection of images)