I handled it this way:
<?xml version="1.0" encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical">    
<mx:Script>         <![CDATA[             import mx.events.ResizeEvent;
[Bindable]             [Embed(source="assets/someimage.png")]
private var stretchy:Class;             private static const
IMAGE_WIDTH:Number=800;         ]]>     </mx:Script>          <mx:Canvas
id="outerContainer"          height="100%"          width="100%"        
horizontalScrollPolicy="off"          verticalScrollPolicy="off"        
>         <mx:Image id="stretchImage"              source="{stretchy}"
scaleContent="true"             scaleX="{stretchImage.width /
IMAGE_WIDTH}"              scaleY="{stretchImage.width / IMAGE_WIDTH}"
left="0"              top="0"              right="0"         />    
</mx:Canvas> </mx:Application>
--- In flexcoders@yahoogroups.com, grimmwerks <[EMAIL PROTECTED]> wrote:
>
> I've got an image that I want to have across the top - right now it's
> about 800x80; i'd like this to be pinned right/left and top with the
> height scaling to maintain the aspect ratio for the width --
>
> I've been fiddling, but it doesn't work; any suggestions?
>

Reply via email to