Background image instead of color

Hi, I have a Flex 4 application with this code:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"               
               backgroundColor="#000000"
               applicationComplete="appComp()"
               width="1600" height="900"
public function appComp():void{
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    stage.align = StageAlign.TOP;
    //stage.align = StageAlign.LEFT;
NOTE: In the index.template.html I have change all width and heights from the default "${width}" and "${height}" to "100%"
The documentation says of SHOW_ALL : "Borders can appear on two sides of the application."
I can change the color of these borders with backgroundColor in Application tag, but....   How can I put an image (or swf) instead of these Borders?
THANKS.
Raúl.

Hi There,
In my knowledge, there are two ways to do that.
1) Create a skin for your application(I guess this option is only for advanced users) and choose the background colour there
2) A trick which I found is take a border container and use a background image for this border container.
e.g.:-
<s:BorderContainer
  width="100%" height="100%" x="0" y="2" backgroundImage="@Embed(source='assets/images/nameofimage.jpg')">
//other components
</s:BorderContainer>
Hope, it helped>>>>

Similar Messages

  • Background image instead of color for each sliding panel

    I'm working with sliding panels and trying to add some style to the page.  I have figured out how to put a different background color on each slide and even how to put a background image on the whole thing, but  I cannot figure out how to use multiple images (one for each pannel). When I put the images in place of the colors it works fine in the Dreamweaver screen but totally disapears in a web browser.  Here is the url:    http://www.centerofdiscovery.com/the_center_of_discovery_home_page.html
    any help would be great!

    Regarding getting the tabs to sit on top of the content panel, speaking generally here, make the containing div for both the tabs and the content panel to have a margin: 0 auto; setting.This is for horizontal alignment.
    The blue rectangle can be belayed by setting border: none; on the specific rule that applies to the "a" links within that container. It is an indication that there is a link there.
    Please rename the images that have word-spaces in their file names. Some browsers react badly to word-spaces.
    I see that you have
    <p>
      </p><div class="slidingpanelandtab">
        <blockquote>
          <p><a onclick="sp1.showPanel(0); return false;" href="#"><img width="144" height="70" class="oneColFixCtrHdr" src="Images/panneltab.jpg"/></a><a onclick="sp1.showPanel(1); return false;" href="#"><img width="144" height="70" src="Images/panneltabb.jpg"/></a><a onclick="sp1.showPanel(2); return false;" href="#"><img width="144" height="70" src="Images/panneltaba.jpg"/></a><a onclick="sp1.showPanel(3); return false;" href="#"><img width="144" height="70" src="Images/panneltabc.jpg"/></a></p>
        </blockquote>
    Which sets off your "slidingpanelandtab" class div with an empty paragraph space <p></p> and then sets off the next section not only with <p></p> paragraph spacing but also with a <blockquote></blockquote>, which will by all rights indent that element.
    I suggest that you get rid of the spurious paragraph tags and the blockquote; that should tighten up your spacing.
    Beth

  • Background graphic instead of color supported in menu  widgets?

    Hi, I am trying out spry in DM3, pretty cool so far, but as
    far as design goes, it seems limited. for example, can u somehow
    make the menu tabs graphical? I see you can change color, but how
    do you instead use a gif/jpg? And can the a tab be transparent?
    thanks!
    BS

    Hi There,
    In my knowledge, there are two ways to do that.
    1) Create a skin for your application(I guess this option is only for advanced users) and choose the background colour there
    2) A trick which I found is take a border container and use a background image for this border container.
    e.g.:-
    <s:BorderContainer
      width="100%" height="100%" x="0" y="2" backgroundImage="@Embed(source='assets/images/nameofimage.jpg')">
    //other components
    </s:BorderContainer>
    Hope, it helped>>>>

  • Dynamically Calling Background Image instead of standard setting

    Hi all,
    There is a requirement that, based on some condition I have to display shaded background image, say 'zimage1' .so as a result it should print in all pages. If condition fails, we have to display other image, say 'zimage2' in background. If both fails, no need to display background image.
    If any body knew the solution please assist me in this regards.
    Thanks & Regards,
    Nagesh.

    Do any one knew how to set Dynamic Background (Watermark) Image instead of going for the standard setting in Page. (by selecting BACKGROUND PictureTab).
    I want to pass a variable kind of information to the following fields during runtime.
    ie.,
    Path: Page->Background Picture.
    Name: <Variable image name>
    Object: GRAPHICS
    ID: BMAP
    and other properties like Ouput Mode, Position..etc.
    That image should come at backgroudn for all the pages.
    Hope, you have understood the issue here.
    Please do update me with relevnat ideas, if any.
    Thanks & Regards,
    Nagesh.

  • Export to web page, background image option gone?

    Apologies if this has been addressed (couldn't get the right boolean search terms to work properly) as it is a simple question.
    Upgraded to iphoto '08 and now one of my favorite features in the 'export a web page' area doesn't appear to exist anymore - the option to use a background image instead of a color.
    Has this 'feature' been removed? It's easy to stick the line into the html code, but what I value is the fact that it (used to) modify each photo's html page, sticking that line in, which wouldn't be feasible for me to do manually.
    Thanks,

    Many thanks for pointing that out. In Composer I have been able to remove the path to my hard drive stored image. What shows now on page source is: <body style="background-image: url(cloudback800x600.jpg);"> but the image
    is still not visible. Your further advice will be appreciated.

  • Populate Empty DIV with Background Image

    I have a three columns page layout, a centered content column accompanied by two side columns. Those two side columns are empty. How do you set the background image (not color) repeating in the side empty DIVs and make them extending as long as the content column goes?  You can do this effortlessly in table cell, but why is it almost making one knocking down a wall to accomplish such an easy task?  BTW One of the tutorials on your website introduces a way to do it by setting a background color on the container DIV and claiming content DIV color white, thus making the sidebar bearing a background color, also at the same length as the container DIV.  I can't seem to understand its logic.

    joycwang wrote:
    I have a three columns page layout, a centered content column accompanied by two side columns. Those two side columns are empty. How do you set the background image (not color) repeating in the side empty DIVs and make them extending as long as the content column goes?  You can do this effortlessly in table cell, but why is it almost making one knocking down a wall to accomplish such an easy task?  BTW One of the tutorials on your website introduces a way to do it by setting a background color on the container DIV and claiming content DIV color white, thus making the sidebar bearing a background color, also at the same length as the container DIV.  I can't seem to understand its logic.
    I don't fully understand what you have said below?
    'How do you set the background image (not color) repeating in the side empty DIVs and make them extending as long as the content column goes? '
    (not color) is the bit that confuses me?
    You have a background image that you want behind all 3 columns? This background image is not color? Is it an image?

  • How to put background image on whole screen of javaFx app

    Hello,
    I have a javaFx window,on which u have displayed certain data that is coming from a webservice call.
    Now to make it look attractive,i want to put a background image on the screen.
    I know the image tag in the content,but it does not cover the whole screen and is not below the data.
    How can i do that??
    Also, how can i change color of the text. In the Text attribute,we have font,but nothng to change its color...
    Please help
    Thanks
    Anuj

    Hi,
    I don't know about the background image but the color of Text can be set using the fill property of a Text node.
    Text {
      content: "Hello World"
      font: Font {
        size: 100
      x: 100
      y: 100
      fill: Color.RED
      stroke: Color.BLACK
      strokeWidth: 3
    - Alexander

  • Image with transparent background changes surrounding fill color when PMS...

    Hello.
    I have a .PSD image I'm using in InDesign CS3. It's a greyscale image with a transparent background. When I bring it into InDesign and set the background color of the image box to a Pantone and then print it, the PMS color within the area of the .PSD image size changes color compared to the rest of the page. But, when the same document is printed, but with "All Spot to Process" via the Ink Manager, the page prints fine. I get the same results on a number of different Canon and Xerox proofing printers. I have uploaded a PDF to my web server showing an example of the results I'm getting the PDF can be found here:
    http://theboyk.net/temp/PMSvsCMYK.pdf
    The first page is the document printed normally. You can see the color change in the green (Pantone Green). The second page is the same document printed with "All Spot to Process" via Ink Manager.
    Does anyone know why this happens when I leave it as printing a spot color?
    Any advice would be appreciated!
    Thanks,
    Kristin.

    I totally forgot to put that in my post.  Yes, I am putting logos with transparent backgrounds in front of colored rectangles.  That's how I noticed that this one logo is showing up with a white background.  The weird thing is that the other two logos are fine.  I did find a different version of this logo and this one works fine.  The one that works fine is a JPG and the one that shows up with a white background is a JPG.

  • Background images and color

    What instance would background image and background colors
    not show in a browser? (All other images are fine)

    Cosmic rays.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:gbu845$7gd$[email protected]..
    >A color specification without the required octothorpe
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "TC2112" <[email protected]> wrote in message
    > news:gbu7sb$782$[email protected]..
    >> Hello,
    >>
    >> Some examples would be incorrect CSS, an incorrect
    link to a CSS
    >> stylesheet, another element with a background color
    "on top" of the
    >> background blocking it, an incorrect path to the
    image....
    >>
    >> The answer is in the code.
    >> Do you have a link you could post?
    >>
    >> Take care,
    >> Tim
    >>
    >> "TaraLeigh" <[email protected]>
    wrote in message
    >> news:gbu7bj$6hs$[email protected]..
    >>> What instance would background image and
    background colors not show in a
    >>> browser? (All other images are fine)
    >>
    >>
    >

  • Trace background image color

    i am working on project for avatar design and would allow
    user to upload his pic on avatar face. i did this part. Now next
    thing is user can select 2d design 0f lips to place on face? Here
    comes the problem. i need to auto blend color of flash lips to
    background pic of user face. This can be done if i can grab color
    value of background on runtime and then i can apply that color to
    2d lips to blend with original. Can some one suggest any idea or
    alternate

    Yes. When you style ul.MenuBarHorizontal a, as you have discovered, you are styling ALL a in the MenuBarHorizontal.
    Immediately after the style you have shown, put this style:
    ul.MenuBarHorizontal ul a {background-image: none;}
    That should stop the image from appearing on submenus, counteracting the earlier rule, but only for the submenus.
    You could add a color to that style rule, if you wanted to. Whenever you indicate both a background-image and a background-color, the background-image will take over, if it's able. The background-color is typically there as insurance, in case the background-image does not render or images are turned off. It's a "belt AND suspenders" kind of thing.
    Beth

  • Color or background image of a page

    Hi all.
    We want to have multiple pages with different color or background image in our portal.
    Via the theme editor it is possible to assign either a color or an image on the background of the portal body but that only gives us one look to choose from.
    We have tried creating our own page layout with a specific background image but it does not work through the portal (it works fine doing a preview of the page though).
    Has any of you had the same challenge wanting different backgrounds on the portal pages and found a usable solution?
    PS!
    Portal version is EP6 NW04 SP12.
    Thanks in advance.
    Søren

    I think what you want is a nice clean strip that runs the width of the page that you can place tabs on top of. To give it a really professional look. We wanted the same effect but there is no easy way. I ended up making a background image for the page with a small stripe about an 1" from the top of the page that ran the width of the page. Then when the page is rendered, the tabs appear on top of the strip. That was our workaround.

  • Why does my Background image color changes when I place an image ?

    Hi everyone,
       I'd like to make a presentation in InDesign. I put a background image into a different layer which I called "Background" and then I create a new layer which I called "Images" and place an image with a transparency layer. When I place this image onto the Images layer color of the image in the Background layer changes. I can not figure out why It changes its color. I'd be grateful to anyone who can help me resolve this problem ?
    Regards
    Cem

    Edit > Transparency Blend Space... and set it to match the color mode of the background image.

  • Instead of background image I see portions of my desktop

    I have a new video card (ASUS Estreme AX300) (ATI Radeon 300 chipset). Now web pages with background images (e.g. http://slackbuilds.org) are clobbered with other parts of my desktop.
    I suppose the Xorg radeon driver is the problem. Yet Seamonkey 1.1.18 does not have this problem.
    Do you have any hints other than installing the proprietary ATI driver (I tried, but Slackware is not offered)?

    Thank you for your patience X423424X.  Hense my handle as “I don’t have a clue” other than to do much more than to turn my Mac on or off.
    Obviously, I didn’t know how to use the Go to Folder in the Go Menu until now, so that helps a great deal.
    I had previously opened the Library folder and scrolled down to the folders you suggested  and did it several times so I’m a bit flustered because there were tons of plists in the LaunchAgents and LaunchDaemons folders.  HOWEVER, they are no longer there so I’m even more frustrated now. 
    Now there are no items in either the /Library/LaunchAgents or the /Library/LaunchDaemons folders and the only thing in the /Library/StartupItems is the NortonPersonalFirewall folder which includes NortonPersonalFirewall, a Resources Folder that includes an English.lproj folder with Localizable.strings and a StartupParameters.plist
    When I opened the Login Items in my System Preferences there are no items listed.
    Thanks again for your patience,

  • Upgraded to Yosemite and now my desktop background is covered by colorful image

    I recently upgraded to Yosemite and now I have an image over my background images that won't go away and is preventing me from accessing my desktop. I took a screen shot of the image and it is posted below. The image is also behind my dashboard widgets too. I messed around with my preferences and made sure that my desktop should be using my pictures and it is (I can see my desktop image for a quick second when I toggle between my dashboard and desktop, but the other image appears as soon as I've toggled over). When I click and double click on the background image nothing happens and I can only access folders and files on my desktop through the finder menu. How can I get this image off of my screen?
    MacBook Pro (Mid 2012)
    2.5 GHz Intel Core i5
    8 GB 1600 MHz DDR3

    Have you tried starting up in safe mode to see if it's still there?

  • Spry Menu Background image not working in IE

    I have created a website using Dreamweaver CS5 and having trouble with my Spry bar in internet explorer. It looks great in chrome, firefox, etc, but in IE there is a white background instead of my background image and the submenus have moved WAY right.. can someone help me!
    SpryMenuBarHorizontal.CSS is below:
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: 800px;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: center;
    cursor: pointer;
    width: 160px;
    float: left;
    background-image: url(file:///E|/MAIN_website/images/menu_background.jpg);
    ul.MenuBarHorizontal li a{
    color:#FFF;
    ul.MenuBarHorizontal li li{
    background-image: url(../images/menu_background1.jpg);
    ul.MenuBarHorizontal li li a{
    color:#000;
    ul.MenuBarHorizontal li li li{
    background-image: url(file:///E|/MAIN_website/images/index_06.jpg);
    ul.MenuBarHorizontal li li li a{
    color:#FFF;
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover,
    ul.MenuBarHorizontal a.MenuBarSubmenuVisible{
    color:#33CCFF;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    width: 8.2em;
    position: absolute;
    left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    width: 160px;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    position: absolute;
    margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    left: auto;
    top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    padding: 0.5em 0.75em;
    color: #FFF;
    text-decoration: none;
    font-family: Cambria, Arial, sans-serif;
    font-size: 14px;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    color: #FFF;
    text-decoration: underline;
    /* [disabled]background-image: url(file:///E|/MAIN_website/images/menu_background.jpg); */
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    background-color: #33C;
    color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarDown.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarDownHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

    Because I can't see your site and code in context, I will make a guess that this style is throwing off your alignment:
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: center;
    cursor: pointer;
    width: 160px;
    float: left;
    background-image: url(file:///E|/MAIN_website/images/menu_background.jpg);
    Remove the text-align:center; from the above style.
    Instead of centering your list element (li), center the link text (a) itself:
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    padding: 0.5em 0.75em;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    font-family: Cambria, Arial, sans-serif;
    font-size: 14px;
    If you don't want the submenu text to be centered, do this immediately after the previous style:
    ul.MenuBarHorizontal ul a {text-align: left;}
    The sub-submenus are also set up by default to be jogged a bit to the right. You can adjust this style:
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    position: absolute;
    margin: -5% 0 0 95%;
    that causes sub-submenus to fly out to the right of the submenus to which they attach.
    Submenus themselves (not the sub-submenus) should fall directly under the top menu item by default, once you remove the text-align: center; on the li item (above).
    Beth

Maybe you are looking for