void setScrollTrack(CCScale9Sprite *st){ if(_scrollTrack){ _scrollTrack->removeAllChildrenWithCleanup(true);} _scrollTrack = st; if(st){ addChild(st, 254); } }
void setScrollBar(CCScale9Sprite *s){ if(_scrollBar){ _scrollBar->removeAllChildrenWithCleanup(true);} _scrollBar = s; if(s){ addChild(s, 255); } }