Perhaps you could use the persist behavior on them to make them remember? Otherwise you could maybe give them an instance variable called id. Then, when the layout starts, create the needed number of sprites, set their id incrementally (so the first one is 1, next one 2 etc.) and then save your information based on that id?