Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-05-2008, 02:45 PM   PM User | #1
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,042
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
Question Design - stretch image

In html and css, you can stretch an image to make a bar across the web page by repeating that image. How do you do that in Flex?

I've tried setting up css, but that doesn't seem to be one of the possible options (repeating the image). I've tried making it wider (100%), but that doesn't work either.
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 11-29-2008, 04:53 PM   PM User | #2
byuhobbes85
Regular Coder

 
byuhobbes85's Avatar
 
Join Date: Oct 2006
Location: Ames, Iowa, USA
Posts: 116
Thanks: 9
Thanked 4 Times in 4 Posts
byuhobbes85 is an unknown quantity at this point
Do you have Flex builder? If so, I should think that you would be able (in design mode) to grab the sides and stretch the image as wide as you like. But then again, I also thought you would be able to do the same thing in the MXML using the Image width attribute.

If your app is 600px wide and you want the image at the top, this should work.
Code:
<mx:Image x="0" y="0" width="600" source="yourImage.png" />
If that doesn't do it, perhaps some sample code and a more detailed description of what you're trying to do would be helpful.
__________________
-- </byuhobbes>
byuhobbes85 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:11 PM.


Advertisement
Log in to turn off these ads.