0 Replies Latest reply on Nov 12, 2008 7:39 AM by bmilesp

    Canvas won't scroll content, but scrollbar appears?

    bmilesp Level 1
      Hello, i've tried porting this at actionscript.org with no luck.
      I have a class that extends canvas and i populate the object like so:

      for each (var group:XML in dataProvider.group) {
      card = new CardComponent();
      card
      .x = this.x + (offset_x * i);
      card .y = this.y + (offset_y * i);
      card
      .z = z_depth;
      this.addChild(card );
      i++;
      }

      the scrollbar will appear when the cards total width exceeds the boundaries, but the scrollbar doesn't scroll the content (the cards) when dragged back and forth. Although the scrollbar does appear to adjust it's size correctly proportionate to the content. Is there additional code i need to add for the scroll functionality to move the content? Thank you in advance -b