Hi Jurgen,
Something like this would align the image to the right side of it's container:
<mx:VBox width="100%" height="100%"
horizontalAlign="right" verticalAlign="middle"
horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Image source="@Embed(source='/view/assets/images/logo.swf')"
id="imgLogo" width="500" height="500"/>
</mx:VBox>
Your image size may be different. Also, if you are using percentage-based sizes for the image, you might want to use maintainAspectRatio.
-TH
--- In [email protected], "Jurgen Beck" <[EMAIL PROTECTED]> wrote:
>
> I am using a CSS style to set the background of a mx:Box. The embedded
> image is a movie clip object from an asset SWF. Everything works fine,
> the SWF resource shows up in my application. However, I cannot figure
> out how to get Flex to align the embedded SWF object on the left side.
> It seems that by default everything is lined up in the middle.
>
> Any suggestion on how to fix this?
>
> Thanks,
>
> JB
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

