I have a Canvas subclass that creates a number of SWFLoader children.
The SWFLoaders each dynamically load a PNG. When the PNG finishes
loading it is positioned via swfLoader.content.x = someNumber. The
problem is that when these PNGs hang over any edge of the Canvas
subclass they are not clipped.
Every once in a while I'll drop a dummy UIComponent child into a
canvas and set it to have an x position of -1. That will force the
canvas to clip it's children. A canvas only applies the clipping mask
if it checks its children and thinks that one of them extends beyond
the bounds. If you have a
Holy hell Batman, that worked like a charm. Thanks!
On Mon, Apr 14, 2008 at 12:29 PM, Doug McCune [EMAIL PROTECTED] wrote:
Every once in a while I'll drop a dummy UIComponent child into a
canvas and set it to have an x position of -1. That will force the
canvas to clip it's children. A
Does anyone besides me think it would be nice to be able to force content
clipping for scenarios like this? Dealing with an extra child can be a bit
of a pain sometimes, like in my current component. If anyone else thinks its
worthy I will file an enhancement request.
Ben
On Mon, Apr 14, 2008
But then what would I do with these arcane bits of framework knowledge
I have stored up? My life would lack meaning.
But yeah, I'd vote for that enhancement request. Something like a
forceClipping boolean on all containers that support content clipping?
Doug
On Mon, Apr 14, 2008 at 9:59 AM, Ben
As long as there are bedazzlers and rhinestones in this world your life has
meaning McCune. But yea, thats about how I saw it too.
Ben
On Mon, Apr 14, 2008 at 1:11 PM, Doug McCune [EMAIL PROTECTED] wrote:
But then what would I do with these arcane bits of framework knowledge
I have stored
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Monday, April 14, 2008 1:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What would cause a Canvas subclass to not clip
its content?
But then what would I do with these arcane bits of framework
7 matches
Mail list logo