Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17080

[BUG?] PageView in cocos2d-x 3.10

$
0
0

@josempan wrote:

I had this piece of code working on previous than 3.10 versions, but now everytime the code reach to any method from PageView the game hangs out. No mater what I do, or I remove if I try to use a method from PageView, the program stop running (no breaks, no throws, just black screen).
The StoryScene_json was made using Cocos Studio... is this the problem?

this._jsonScene = ccs.load(res_game.StoryScene_json);
this.addChild(this._jsonScene.node);

this._root = this._jsonScene.node.getChildByName("pageView");
//Using this._root = ccui.helper.seekWidgetByName("pageView"); is the same        

this._root.setCustomScrollThreshold(cc.director.getWinSize().width * 0.25); // App hangs out, just black screen
this._root.addEventListener(this.onScroll, this); // If I remove the previous line, then the app hangs here.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>