I am having some issues with Creating a CCScrollLayerButton, assigning a tag to it then reading that tag in my callback function.
when i try and get the tag i am getting an EXEC_BAD_ACCESS exception.
I doing the following:
CCScrollLayerButton* levelButton = CCScrollLayerButton::buttonWithFile( “CompleteLevel.png”, this, menu_selector(LevelSelectionScene::callfunc));
and the callFunc looks as follows:
int tagNum = pSender~~>getTag();
any help would be much appreciated.