function returnSpritetoCloset(sprite){
            sprite.getData('group').addAt(sprite, sprite.getData('index'));
                utilities.scaletoIconSize(sprite);
                sprite.x=sprite.getData('origin').x;
                sprite.y=sprite.getData('origin').y;
                sprite.ignoreDestroy = false;
                displayLayer(sprite.getData('group'));
        }
//return sprite to closet if not on the cat
return sprite to closet if not on the cat
return sprite to closet if not on the cat
function returnSpritetoCloset(sprite){
            sprite.getData('group').addAt(sprite, sprite.getData('index'));
                utilities.scaletoIconSize(sprite);
                sprite.x=sprite.getData('origin').x;
                sprite.y=sprite.getData('origin').y;
                sprite.ignoreDestroy = false;
                displayLayer(sprite.getData('group'));
        }
function returnSpritetoCloset ( sprite ) { sprite . getData ( 'group' ) . addAt ( sprite , sprite . getData ( 'index' ) ) ; utilities . scaletoIconSize ( sprite ) ; sprite . x = sprite . getData ( 'origin' ) . x ; sprite . y = sprite . getData ( 'origin' ) . y ; sprite . ignoreDestroy = false ; displayLayer ( sprite . getData ( 'group' ) ) ; }
return sprite to closet if not on the cat
return sprite to closet if not on the cat