Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Component extends ContentNode with nodearray non-resizable


I'm trying to extend ContentNode:
<component  name = "ExtContentNode" extends = "ContentNode">
  <interface >
    <field id = "list" type = "nodearray" alwaysNotify="true" />

But when I try to add value in code:
 for each kid in itemAA.children
  end for

I get  "roArray.Push: push ignored for non-resizable array".
How can I make it resizable?
0 Kudos
1 Reply
Level 7

Re: Component extends ContentNode with nodearray non-resizable

Only node field types are accessed by reference, so you can't modify a nodearray directly. You need to reference the nodearray locally, modify it, then reset it.
My Channels: - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos