Skip to content

How can I use this scroll? #4

@ghost

Description

Hi, Pavel!

Yesterday, I'm started to use your TouchScrolling library, but I still can't understand, how to work with it correctly. Could you help, please?

I have a Sprite in a FlashDevelop project and I want to scroll it.
I use the code:

private var touchScroller:TouchScrollModel;
...
touchScroller = new TouchScrollModel();
touchScroller.setViewportSize(stage.stageWidth, stage.stageHeight);

What should I do next? How to link sprite with touchScroller?

I've also tried to use TouchScroller class as follows:

private var touchScroller:TouchScroller;
...
touchScroller = new TouchScroller();
addChild(touchScroller);

and have few errors:

  • TouchScrollManager.as(1797): col: 57 Error:
  • TouchScrollManager.as(1816): col: 40 Error:
  • TouchScrollManager.as(1857): col: 41 Error:
  • TouchScrollManager.as(1903): col: 38 Error:
    Type was not found or was not a compile-time constant: PanGestureEvent.

Please, support me, how can I correctly use your TouchScroller library?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions