public static ProxySprite add(Sprite.SpriteName mSpriteName) { ProxySpriteManager spriteBoxMInstance = ProxySpriteManager.getSingletonInstance(); Debug.Assert(proxyMInstance != null); ProxySprite nodeAdded = (ProxySprite)proxyMInstance.genericAdd(); Debug.Assert(nodeAdded != null); //set the attributes of the proxy sprite node nodeAdded.setAll(mSpriteName); return(nodeAdded); }