You are welcome to file an ECR for alignment properties or styles, but keep in mind that in most people's use cases, you don't want to stretch the Image beyond the size of the bitmap so there might be some play in one dimension, but not the other. This is because most of the time, you want to use the layout rules instead of having things overlap. I would also recomment not filling available space with Image in your renderer either. I asked in the other thread that you post a couple of the swfs so I can look at them. I'm now thinking that the content in the swf is not aligned to topleft. I wish AVM1Movie had timeline APIs too, but like I said, the Player team chose not to implement interoperability between the two worlds.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of droponrcll Sent: Tuesday, October 02, 2007 6:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Placement of Image within Image Control --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > The image content is always at the top-left of the Image. Based on > scaleContent, the Image will scale the content or try to shrink itself > down. There are no 9 choices, the image content fully fills the Image > plus/or/minus extra space in order to maintain aspect ratio if > requested. I've asked the image control to fill 100% of the available space. So if the image is not the same shape as the space, the image winds up in an odd spot. I know there are no 9 choices now, and I suspect you know a bit more about the Flex team's abilities than I do, but I would not consider it outside the range of what they are capable of to allow you to choose where the content will reside in the image control. Considering how much time and effort they've spent making other features user friendly, I'd think that this would be a good use of engineering time. After all, they've managed plenty of other controls that allow you to select top, middle, bottom, left, center, right alignment. It shouldn't be that big a deal to add it to the image control. > You use the parent container's layout to further position > the Image. The VBox wrapper is trying to react to the new measured > sizes by adjusting the size and position of the Image and while it > should just work, sounds like something is off there. I wouldn't think the VBox would be able to move the content inside the 100% image control, but clearly SOMETHING is moving it. Oddly, all the miniature images appear in the same spot in the thumbnail renderers. Possibly because there is only one main control that is being switched out, whereas each renderer has to present only one image. > If the image > content is a SWF you further complicate the problem because the SWF can > resize itself, but the Image is only checking the size of the first > frame. Are your SWFs "well-behaved" in that they appear centered in > their stages and are aligned relative to the top-left and don't go into > negative coordinates? It might require more code to deal with different > stage alignments. I think all the swfs I've used for my prototype are the same or nearly the same size, so they don't have the same problems as the image control. BTW, why doesn't the AVM1 movie object have stop() and play() methods at a minimum? -Amy