Skip navigation
steph62
Currently Being Moderated

Clipping?

Jul 20, 2010 8:38 AM

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!

 

smileys.jpg

 
Replies
  • Currently Being Moderated
    Jul 20, 2010 11:33 AM   in reply to steph62

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points