This content has been marked as final. Show 6 replies
I'm not sure of the first problem off the top of my head, but for number 2 I can help. Place the CoverArt into a container (eg, Canvas), create a shape (or UIComponent) that's a child of the same container and fills it (draw a solid rectangle into this shape or component) and set it as the container's mask.
Thanks for the reply, but doesn't flex already clip children of parents without setting having to set a mask? See my example Mxml included in this post. Is what you're suggesting a simple work around to the clipping problem? Or is this the way Flex is designed when it comes to clipping? Shouldn't a parent's bounds form the visible bounds for all of its children?
The CoverArt isn't a normal case. Yes, containers should clip their children, but it is possible to ignore that which is what CoverArt appears to do. I was working on an example and decided to use a similar component with the same problem. I needed to do a quick work-around and just assigned a mask. I haven't dived into the source to figure out a cleaner way.
So this is atypical.
I'm seeing the same thing. In my case I run a loop to create a set of N canvases. I add images or video to each one that extend beyond the boundaries of the canvas slightly. Some of them are properly clipped by the containing canvas, others are not. This is odd since each of the canvases are created in exactly the same way, using exactly the same code. It appears as though this is a bug in the Flex framework code.
It's definitely a bug. We need simplified test case that exhibits the bug so we can submit it to JIRA. There are several works arounds that you can do to get it to work. Including the one Peter provided in the form. You can see others here:
I don't think this problem is related to this bug though as I'm not using bottom or right constraints in doing my layout. What you describe sounds very similar to what I was doing as well. If you post your some of your code it might help in working out a test case that we can provide to JIRA so the Flex engineers can fix it. My program is not that trivial so I wasn't going to post it, but if you have one that's simpler then I'd be up for helping you work out a test case.