Adding Scroller causes "no reference!" error

We're trying to add a scroller into a screen.

Currently, the screen contains some contents: SurvivalScreen({... contents: [ ... new Column(.. contents: [ SCROLLER.VerticalScroller($, { contents: [ Column($, { left: 0, right: 0, top: 0, name: 'menu', }), SCROLLER.VerticalScrollbar($, { }), ] }), ... ] ] ...

This crashes. Error: ### BREAK: in: no reference! (/Applications/Kinoma Studio/plugins/com.marvell.kinoma.kpr.resources_1.3.37.4/libraries/MobileFramework.zip/mobile/scroller.xml:409)

The line this crashes on involves a transition: main.run( new TRANSITIONS.CrossFade(), main.last, SurvivalScreen, { duration : 20 });

Any idea what could be going wrong?

Answers

  • Answer ✓

    The scroller needs to be passed a "data" object, as the first argument, on creation. Because you're not passing anything into SurvivalScreen, you'll need to replace those "$" references with "{}".

    --Will

Sign In or Register to comment.