I don't understand what do you need... try to explain it better.
So anyone can help you ^^
However the capx i posted is quite simple.
Look at the InventorySheet.
It just set a global var on mouse events:
- to 1 if the object it's selected (with left click) in inventory layout. (It also change the animation to "Selected" to show the sprite orange)
- to 0 if the object it's not selected (with right click) in invetory layout. (It also change the object animation to "Default" to show the sprite green)
On start of game layout, gameSheet checks the global var: if it's 0 it destroy the sprite, else it just modify it's position to what you want.
Going back to invetory layout, InventorySheet checks the global var: if it's 0 it set the animation "Default" (i.e. not selected - green), else it set the animation "Selected" (i.e. selected - orange).