Skip to main content
Participant
July 20, 2010
Answered

Clipping?

  • July 20, 2010
  • 1 reply
  • 639 views

Hi

I'm using text flow layout for displaying animations in text, which is working pretty well so far, but if the animation goes over the boundaries of the textflow object, it seems to be clipped (i.e. one animation has a jumping person, which gets clipped at the top if it's on the first line).  I've tried using clipContent="false" on the canvas that holds the text, but with no luck and am now a bit baffled. Anyone know what might be causing the clipping (I've attached an image below)?

To give you some idea of composition, I have a holding sprite, which is passed into a DisplayObjectContainerController.

The textflow is made up of a ParagraphElement, which in turn holds either span, link or inlinegraphic elements (animations loaded in using inlinegraphicelement).  If the animations are displayed away from the edge of the textflow object (i.e. not on the first line), they display fine, they only get clipped if they go over the edge.

Any help would be greatly appreciated!

This topic has been closed for replies.
Correct answer robin_briggs

If you have scrolling on, and the content overlaps the edges, it does get clipped. Scrolling is on by default, but for what you're doing, you may want to just turn scrolling off. It's a setting on the ContainerController: verticalScrollPolicy = ScrollPolicy.OFF and horizontalScrollPolicy = ScrollPolicy.OFF will turn clipping off.

- robin

1 reply

robin_briggsCorrect answer
Adobe Employee
July 20, 2010

If you have scrolling on, and the content overlaps the edges, it does get clipped. Scrolling is on by default, but for what you're doing, you may want to just turn scrolling off. It's a setting on the ContainerController: verticalScrollPolicy = ScrollPolicy.OFF and horizontalScrollPolicy = ScrollPolicy.OFF will turn clipping off.

- robin

steph62Author
Participant
July 21, 2010

That fixed it - thanks Robin!