How do you change a background image in an HBox control via actionscript?

Hi All,
I would like to change the background image of a HBox control
when the user clicks on a tab (tabnavigator control). I call a
function on the 'activate' method of a VBox control, within the
TabNavigator. So for each of the tabs when a tab is selected an
appropreate image is displayed in another part of the screen.
Thanks for any insights/help
regards
Davej

Binding a string variable and using the show() event instead
of the activate event will work. See Below
<mx:Script>
<![CDATA[
[Bindable]
private var mystring:String = new String();
private function dispAssocIMG(f3rd:String):void {
mystring = f3rd;
]]>
</mx:Script>
<mx:HBox backgroundImage="{mystring}" id="first3rd"
width="567" height="336" y="209"></mx:HBox>
<mx:HBox id="mid3rd" width="457" height="336" y="209"
x="567" backgroundColor="#956944">
<!-- Tab Navigator -->
<mx:TabNavigator height="336" width="457" >
<mx:VBox label="about me"
show="dispAssocIMG('image1.jpg')"></VBox>
<mx:VBox label="test2"
show="dispAssocIMG('image2.jpg')"></mx:VBox>
</mx:TabNavigator>
</mx:HBox>
</mx:Application>

Similar Messages

  • How do you change the background color from black to another color on i movie

    How do you change the background color from black to another color on i movie

    You post your question in the iMovie forum.

  • How do you change the background color not of the video clip, but the background the clip is on?

    How do you change the background color upon which the clip resides...
    I don't want to change anything within the clip itself, but the matte(?)
    from black to white or cream.
    I am working with Elements 10...

    Create a color matte of the desired color and place it on video track 1.  Then place your video on track 2.
    from here: Adobe Premiere Elements Help | Creating specialty clips
    Create a colored matte for a background
    You can create a clip consisting of a full‑frame matte of solid color, which you can use as a solid background for titles or animated clips.
    Brightly colored mattes can serve as temporary backgrounds to help you see transparency more clearly while you adjust a key effect.
    Click Project Assets. 
    In the Project Assets panel, click New Item from the panel options and choose Color Matte. 
    Choose a color in the Adobe Color Picker dialog box, and click OK. 
    A color matte clip is placed into both the Project Assets panel and the Expert view timeline.

  • How do you change the background color of certain rows in a Datagrid?

    How do you change the background color of certain rows in a
    Datagrid?

    Hee is a great example:
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=487
    Tracy

  • How do you set a background image in Pages?

    I have a simple question. How do you set an image to be the background of a Pages '09 document? How do you put a JPG image behind your regular body text? Surely it's possible, but I can't figure out how to do it.

    You just didn't took care to the status of your picture.
    It was an inline one
    Change its status to floating and the menu item is no longer grayed.
    This kind of features are described in Pages User Guide which is also for you
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 22:40:00
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How do you change a background color in Lightroom 4.4 ?

    Hi ..please how can you make a background color change in Lightroom 4.4  ?@

    If you are talking about the surrounding background of the photo while in Library Loupe View or in Develop, that you can select among 3 levels of gray, black or white in the Preferences / Interface settings.
    If you are talking about the photo itself, you need to be a bit more specific about what you'd like to do.

  • How do you change the background color?

    I saved a Word document as a PDF and the background color is yellow. The Word document is white. On the PDF, the background is yellow and the inserted graphics and boxes are white.
    How do I change the background color of the PDF? And is there a default setting for the color. This happens every time I need to create a PDF from a Word document.
    Thank you.
    Michele

    Hi Michele,
    Please check the following Preferences:
    Go to Edit -> Preferences -> Accessibility -> make sure "Replace Document Colors" is unchecked.
    Regards,
    Anoop

  • How can you make a background image change to a faded state at a certain point in scroll?

    I'm referring to a technique I've seen used in Relevant Magazine's iPad app if anyone has used it. I understand having a shape behind text that has a feathered gradient and when you scroll the text the shape gradually fades out the background image. But this is not the effect I'm trying to acheive. On some of the articles in Relevant, the screen is a full image and as you scroll the type up, the entire background dims when you scroll to a certain spot.
    I've tried searching for hours, but I feel like I'm getting no where because I don't really know what to search for. I feel like it requires use of something other than what DPS is capable of. Hopefully this makes sense and I'd greatly appreciate any suggestions and help!
    Thanks!

    Try applying the feathered gradient to the scrollable content frame, not the background frame. It will appear to change the color of the background frame.

  • How do I change the background image for a single tab on the navigation bar

    I'm creating a movie website for TDKR and for the navigation bar, I intend to have a different character for each tab. However, I'm having trouble putting a single image each separate tab. Instead one image appears on each of the tabs. Here's an example of the source and CSS.
    <td width="200"><ul id="navigation"><br />
          <li><a href="../pages/index.html">Home</a></li><br />
          <li><a href="../pages/cast.html">Cast</a></li><br />
          <li><a href="../pages/pictures.html">Pictures</a></li><br />
          <li><a href="../pages/soundtrack.html">Music</a></li><br />
          <li><a href="../pages/interview.html">Interviews</a></li><br />
          <li><a href="../pages/links.html">Links</a></li><br />
        </ul>
        </td>
    #navigation {
              list-style-type: none;
              padding: 0px;
              margin: 0px;
    #navigation li {
              margin: 0px;
              padding: 0px;
              list-style-type: none
    #navigation li a:link, #navigation li a:visited {
              display: block;
              width: 200px;
              height: 100px;
              text-decoration: none;
              text-align: center;
              line-height: 100px;
              font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
              font-weight: bold;
              -webkit-transition: 1000ms ease;
              -moz-transition: 1000ms ease;
              -ms-transition: 1000ms ease;
              -o-transition: 1000ms ease;
              transition: 1000ms ease;
              color: #648AAE;
              background-repeat: no-repeat;
              background-image: url(../Images/gifs/Batman-still-2.gif);
              background-position: center bottom;
              text-transform: uppercase;
              letter-spacing: 0.79em;
              border-radius: 5px;
    #navigation li a:focus, #navigation li a:hover, #navigation li a:active {
              color: #000000;
              background-image: url(../Images/gifs/Batman-animation-2.gif);
              background-repeat: no-repeat;
              background-position: center bottom;
              background-color: #454545;
              border-radius: 25px;
    So, how do I put a single image on each tab (home, cast, pictures, etc). Thank you for your help in advance.

    Assign a class to the item and use CSS to apply an image as in
    <li><a href="../pages/index.html" class="home;">Home</a></li><br />
    <li><a href="../pages/cast.html">Cast</a></li><br />
    <li><a href="../pages/pictures.html">Pictures</a></li><br />
    <li><a href="../pages/soundtrack.html">Music</a></li><br />
    <li><a href="../pages/interview.html">Interviews</a></li><br />
    <li><a href="../pages/links.html">Links</a></li><br />
    and the CSS
    #navigation li a:link.home, #navigation li a:visited.home {
         background-image: url(../Images/gifs/Batman-still-2.gif);

  • How do you change the background of a single page??

    I know how to change the background of a page (wrench tool- document setup- add shape- change size to fit whole page - change colour - done)
    but it automatically makes every page that colour not just one page, please can somebody explain how to make it work. Thanks

    Hello Alp2001,
    Thank you for the details setting a background color in Pages.  When you click on Document Setup under the wrench tool, this sets the background for your entire document. 
    Alternatively, if you want to add a background on a single page but not for the entire document, you can just add a shape with the background color on that page.  I also recommend locking the shape once you add it so that it doesn't move while you are trying to add other items to the page. 
    Follow the steps in this article to add a shape, change the size to fit the whole page, and change the color:
    Pages Help for iPad - Add and edit shapes
    http://help.apple.com/pages/ipad/2.0/#/tan9ad18c384
    Once you have set the background for that page, folllow the steps under the section titled "Lock objects" in this article to lock the background shape so that it doesn't move:
    Pages Help for iPad - Layer, group, and lock objects
    http://help.apple.com/pages/ipad/2.0/#/tan5eab46568
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How do you change the background color & font in a text-only popup?

    It has been ages since I did this and I can't seem to remember how. I tried to edit the style sheet but it only has options to change the text-only popup hotspot/link and I need to change the background color and font style within the popup itself. Tried Adobe's help but it had no answer for me. Any one out there know how to do this? I am running RoboHelp 7.

    By Popup do you mean a link that when clicked causes a separate topic to be displayed in a seperate window (popup) or Drop Down text?
    For Popups that are displayed in a new window then the font and colour is changed in the topic that is displayed. Simply open the topic and change colours / features as required
    If you are using drop down text and confusing this with a popup then the font and colour is changed when creating the drop down text. Right click the text and select Font to change colour etc.

  • How do you change the background colour of the bottom part of calendar on iPhoto

    I have created a few calendars and photo books from iPhoto, but can't seem to find how to change the background colour of the bottom part of the calendar (where you write) to match the top part where you insert the photos.  Consequently you end up with a mismatch which doesn't look as good.  I can't believe that apple have not considered this since here are about 5 or 6 colours to choose from on the top section.  I am not running the latest version of iPhoto (which is 11 I think) as I'm not on Lion- is this significant??

    Some theme will let you change the color of both pages. The travel themes, Vintage, Seasons, Kids, Colored Paper, Modern Lines, Classic (only the border around the date area), With the Big Date theme you can change the background on both pages.
    Send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

  • How do you change the background in an editable region?

    I have created a template with an editable region in it.  I then created a web page based on the template and have added text to the editable region.  I would like to change the background color of just the editable region and just for this web page.  How can I do that?
    Thanks.

    Well... am sure others will correct me if i'm wrong, but it seems fairly simple.
    1/ There must be a tag identifying that editable area. Either a <div>, or a <table>, or whatever...
    2/ Create a class in you stylesheet with the background colour you want to use and assign it to the tag
    3/ Alternatively, if you'd rather use an inline style, then go to the tag in code view, right click, select style from the menu and then in the quotes right click again and select background-color. Choose your color and you're done.
    If the editable area is a <div> for instance, your inline css should look like this:
    <div style="background-color:#CCCCCC"> This will give you a grey background</div>
    Cheers,
    JJ
    PS: If you can put the page up it'll be easier to help you

  • How do you center a background image?

    I've been trying to center my background image but am unable
    to do it. I've resorted to trying to center the image instead
    because I couldn't figure how to stretch a background image to be
    viewable on a browser without a repeating image. Can someone
    explain how to center a background image and/or stretch a
    background image?

    body { background-position:center; }
    Maybe?
    Background images don't stretch.
    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
    ==================
    "ff542" <[email protected]> wrote in message
    news:g14orc$18l$[email protected]..
    > I've been trying to center my background image but am
    unable to do it.
    > I've
    > resorted to trying to center the image instead because I
    couldn't figure
    > how to
    > stretch a background image to be viewable on a browser
    without a repeating
    > image. Can someone explain how to center a background
    image and/or stretch
    > a
    > background image?
    >
    > body{
    > background-image:
    url(final-fantasy-1-the-journey-beginsbackground.jpg);
    > background-repeat; no-repeat;
    > background-color: #99CCFF;
    > }
    >

  • How do you change the background to plain white?

    Hello. I am currently using Adobe X Pro Lite and I would like to know how to change the background to plain white. This is what it looks like right now:
    [IMG]http://i285.photobucket.com/albums/ll69/NextJinGamer/ScreenHunter_001-111.gif[/IMG]
    This makes it difficult to read and it's annoying.

    Hello. I am currently using Adobe X Pro Lite and ...
    Is this a new product?
    In the preferences of Adobe Acrobat X Pro you can disable the entry 'Show transparency grid'.

Maybe you are looking for

  • Posting GR against IB, user-exit to calcluate exchange rate

    Hi guys, this is my requirement. When we do a goods receipts in VL32N (Click on post goods receipts), this will create a material document, the amounts calculated in the material document (Amount in Local Currency, mseg-DMBTR) are calculated against

  • Error in ALEAUD Idoc

    Hi All, When i send the MATMAS Idoc from ECC to XI, it is giving success and iam expecting the ALEAUD back to SAP. If  the ALEAUD idoc is posted successfully to ECC  means ,the outbound idoc status will be turned into 39 status.Else it is in 03 only

  • E mac only starts up in safe boot

    Having accidently pressed a few keys on the keyboard while not paying much attention to what was happening to my computer it just switched itself off!!! (I think it was the F15 button that was pressed!) Now it only starts in safe mode and I can't get

  • How to reset SM configuration

    Hallo colleague!  How can I reset Solution Manager configuration without fully reinstalling? Thanks in advance!

  • QTP Integration - eCATT FUNction call

    Hello folks, I am pretty fit in eCATT, but I am fairly new to QTP. I setup an integration in a demo environment and QTP only let's me "open" eCATT Scripts that were recorded with QTP. If I am recording eCATT with QTP i am limited to UI Recording via