Søren I'm not terribly familiar with cocos2d-x syntax. But you can take a look at viewtopic.php?f=7&t=2949&p=14355 for information on how it can be done in Corona and use this to find your solution in cocos2d-x. I hope it helps.