Hi! I want to implemet scroll view as in your example
But when I try to reparent created instance its shows an error that says Uncaught TypeError: parent.addChild is not a function
Here is my code
DebugPanel.prototype.initialize = function(){
_pingPanel = this.ping.element;
_content = this.scrollView.scrollview.contentEntity;
};
DebugPanel.prototype.addUser = function(playerData){
_playersAmount++;
this.usersAmount.element.text = 'Users amount: ' + _playersAmount.toString();
var instance = this.userTemplate.resource.instantiate();
instance.reparent(_content);
instance.element.text = playerData.id;
instance.on('destroy', function() {
_content.fire('contentchanged');
}, this);
_createdEntries.push(instance);
_content.fire('contentchanged');
};
What am I doing wrong?