To set an explicit height or width for an imported image, set its height and
width properties of the
Image<http://livedocs.macromedia.com/flex/201/langref/mx/controls/Image.html>control.
Setting the
height or width property prevents the parent from resizing it. The
scaleContent property has a default value of true, therefore, Flex scales
the image as it resizes it to fit the specified height and width. The aspect
ratio is maintained by default, so the image may not completely fill the
designated space. Set the scaleContent property to false to disable scaling.
Set the maintainAspectRatio property to false to allow an image to fill all
available space regardless of its dimensions. For more information about
image aspect ratios, see Maintaining aspect ratio when
sizing<http://livedocs.adobe.com/flex/201/html/controls_059_19.html#468369>
.

Maybe try maintainAspectRatio = false? or explicitly set its width to what
you want...

On Thu, Mar 5, 2009 at 4:51 PM, Darrin Kay <[email protected]> wrote:

>   I tried that, and it did not stretch it out, the img is 1px wide and
> just puts blank space
>
>
> On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote:
>
>  width = "100%" ?
>
> On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay <[email protected]> wrote:
>
>>
>> Ok I was given a jpg image to use as the header, and I broke to 3 images,
>> the left logo and right logo.  Now in the original image there was a bar
>> that connected the two to make it look like one.  But I want the image to
>> move with the size of the screen so the left and right are on the edges.  So
>> I cut a slice of the bar and what it to stretch to breach the distance.  so
>> it will look like one image no matter what the screen res.
>>
>> Does that make it clearer?
>>
>>
>> On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote:
>>
>>  for your first question  try horizontalGap="0" property on the hbox
>>
>> I do not understand your second question...
>>
>> On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay <[email protected]> wrote:
>>
>>>   Ok I am stuck and I am sure it is simple. I have a HBox and I am I
>>> have a image in there, now I want to put another image in there and
>>> have it butt up against the first so it will look like one, but it
>>> puts a space between the images?
>>>
>>> Also how can I take a slice of a image (say a bar) and have it stretch
>>> to a certain width?
>>>
>>> thanks
>>>
>>
>>
>>
>> --
>> Fotis Chatzinikos, Ph.D.
>> Founder,
>> Phinnovation
>> [email protected],
>>
>>
>>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> [email protected],
>
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[email protected],

Reply via email to