Change background canvas

Hello,
I have the following question:
In my application I have a canvas. I would like to change the background image of that canvas through 2 buttons.
Example:
- Button 1: The background changes to grass.
- Button 2: The background changes to a wooden floor.
So if you click on the buttons, the background image will change.
I've already tried to change the background color of the canvas. I've did that with the code of Flex Examples:
public function colorize(value:Number):void
var colorTrans:ColorTransform = new ColorTransform();
colorTrans.color = value;
starImage.transform.colorTransform = colorTrans;
But I don't have any idea how to change the background image. Does anybody has an idea?
Thanks,
Peter

canvas.setStyle( "backgroundImage", urlToImage );
Let me know if that does the trick...
Ben Edwards

Similar Messages

  • Change viewer/canvas background color?

    When I have a HD clip in the canvas window I get the letterbox look.
    The bars are currently grey which I assume is default.
    Is there anyway to change the canvas background color to black?

    Just hit Control + U if you fancy the standard layout
    or go to FCP main menu>Window>Arrange> Two Up
    if you fancy a more useful layout (IMO).
    These actions will clear the confusion.
    I have the Two Up view shortcut set to Shift + 2 (You can choose your own).
    You can achieve that by customizing your keyboard shortcuts (Alt/Otion + H to start with keyboard layout customization).
    Luca

  • Cannot change the Canvas Extension Color from "Background" to a color of my choosing. Is this a glitch, or is there some setting that I can change?

    Cannot change the Canvas Extension Color from "Background" to a color of my choosing. Is this a glitch, or is there some setting that I can change?

    It depends on how exactly you are doing it but to change the background, I suggest watch this video:
    <How To Change Background in Photoshop Elements 11 - YouTube>
    Hope this helps.

  • I have changed my background canvas color... but it hasn't changed. HELP

    I have changed my background canvas color too White through the preferences system... but it hasn't changed. Can anyone help me with this as I'm tearing my hair out!!
    S

    somanna wrote:
    I guess that you should have first done this and can even do it even now:
    Have the entire project selected first; then open your preferences and choose your white background. This should allow your entire work to have a white background.
    That is NOT the way it is supposed to work. The background color preference is global to the application, it does not work on a project by project basis. This preference setting determines what FCP X displays in the Viewer in areas where you have no content (or where the content is transparent) - as in the present case, where the photos do not cover the whole viewer area.
    You can easily confirm this. Open some project with a transparent area, and set the background to say, white.
    You should see white showing through any transparent area (that's what the OP was expecting, and it should happen!).
    Now close this project, open something else. Switch to, say, checkerboard background.
    Open the previous project and see the checkerboard (not white!) background.
    One workaround for the present problem is to place a custom generator behind the content, and set its color to white. But of course this should not have been necessary.

  • Photoshop CS6 background canvas flickers during use.

    I bought Adobe creative suit 6 design standard yesterday. when using photoshop, the background canvas flickers and becomes transparent when i do things (zoom, erase, brush)
    I have followed the solution of changing the drawing mode to Basic, but it is still an issue and is making photoshop unusable.
    any help?

    Are you on Windows 8, by any chance?  Win8 has some known problems with it's video card drivers, and we're still waiting for all the updates to be released.  We are continuing to work with Microsoft and the GPU vendors to get this fixed.
    If changing the mode to Basic doesn't work - you may want to turn the GPU off entirely in Photoshop preferences until the updates are available.

  • Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Thanks

    Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Yellow on white is harder to read. Thanks

    Another question. How do you bookmark something.  It was so easy before, why did they change it?  Can I uninstall it?

  • How to change background color in mail messages?

    Capacity to change background colours seems to have been removed.  Has anyone found where to do this please???

    It's still available in Lion's version of Mail.
    Open a New Message window in Mail. Then select Show Fonts from the Format menu.
    In the Fonts screen, click the button for Document Color; a clor selection window will open. In that, choose the color you want for background.
    Note - if you do this before entering any text in the New Message, you can save it as a Stationery item, which means you can select it from the Stationery menu in the future, saving many steps.

  • How to change background color in AutoComplete window ?

    Is it possible to change background color in AutoComplete window ?

    Bob, A.Ankit, you're both chasing a ghost here.
    The screenshot shows an autocomplete enabled textbox with its dropdown list of autocomplete values to choose from. There is no property defining its backcolor. Not in the textbox nor in any class, neither any other baseclass nor _combobox of _base.vcx
    The only way to chnage that color is not recommended, via changing windows theme colors. That would effect any window and control.
    If you need another color even turning off themes won't help as VFP doesn't offer any property controlling that color, so you really would need to implement the autocomplete feature yourself, if you want the specify this backcolor.
    Bye, Olaf.
    Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de

  • How to change background color in online editor

    How to change background color in online editor

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • How to change background color in photoshop cs3

    how to change background color in photoshop cs3
    Please help me...

    Background for what? You need to explain better and be more specific.
    Mylenium

  • How to change background color of multilevel textbox in oracle form 6i

    hi
    How To Change background Color of the Text.
    In One Multilevel Block 10 Record is Display At a Time in a Text Box (Name is AMTt)
    This Text Box display , Buffer and Record Length is 10
    In Case Of Amount is Less 500 then Text Color Is Red(Or Any) and In Case Amount Is More 500 Then Color is Green (Or Any).
    Me Use This Code in PRE_RECORD EVENT
    TCMTL is Block name
    TCMTL_AMT is Text Box Name
    if :TCMTL.TCMTL_AMT >5000 then
         g_fun.msgbox('Values is more');
         Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b100');
    else
         g_fun.msgbox('Values is Less');
         Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b10');
    end if;     
    but This Code Is Refer Only 10th Value and change color depend on value.
    so
    possible to Different color in One Block Text Box Then how?

    DECLARE
         cur_itm VARCHAR2(80);
         cur_block VARCHAR2(80) := Name_in('system.trigger_block') ;
         BEGIN
         cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
    WHILE ( cur_itm IS NOT NULL ) LOOP
              cur_itm := cur_block||'.'||cur_itm;
              --:global.VISUAL_ATTRIBUTE:= 'BACKGROUND_COLOR';
              --:global.VISUAL_ATTRIBUTE:= get_item_property(cur_block||'.'||cur_itm ,Background_Color);
              IF :TCMTL.TCMTL_AMT >= 500 THEN
                             Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r50g100b100');
                   ELSE
                             Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r5g100b10');
                   END IF;
                             cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
                   END LOOP;
                   next_record;
    END;
    this is my in that how to set a VISUAL_ATTRIBUTE, and where to set so get a background color of text and change

  • Change background in forms 10g?

    When we compile and run the form in forms 10g output is displayed. Can we change background? Can anybody help me to change the background in forms 10g?

    see you /forms/server/forms.conf file that contains the virtual directories declared
    # Virtual path mapping for Forms Java jar and class files (codebase)
    AliasMatch ^/forms90/java/(..*) "D:\Oracle9i/forms90/java/$1"
    # Virtual path for JInitiator downloadable executable and download page
    AliasMatch ^/forms90/jinitiator/(..*) "D:\Oracle9i/jinit/$1"
    # Virtual path for runform.htm (used to run a form for testing purposes)
    AliasMatch ^/forms90/html/(..*) "D:\Oracle9i/tools/web90/html/$1"
    # Virtual Path form images
    AliasMatch ^/forms90/icons/(..*) "D:\Oracle9i/CGENF61\ADMIN\ICONS\PC/$1"
    ...you can create as many virtual directories as you want.
    Francois

  • How to export PDF in Adobe Reader with changed background

    Hey Folks,
    I change background and text color by going to Preferences -> Accesebility and when I save the file with changed background it is still the old background. How to I save/export this PDF to have changed background?
    Thanks a lot!
    Krioni

    Adobe Acrobat.  A bit expensive just to change the document background...

  • How to change background images in s:application

    hello!
    i want to make a webside by flex4 as  this web http://www.templatemonster.com/flash-cms-templates/29930.html
    But i don't know how to make change background images by click and make sound when load page.
    Can u help me ,please. sorry i write E not well.
    Thanks so much
    BUI THI PHUONG THANH- FROM VIETNAM

    Hi,
    please create a sink for your application inside that put your image.And apply that skin to your application on any click.
    Below is the code.
    Main Application
    <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/halo" xmlns:mx1="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                protected function btn_click(evt:MouseEvent):void {
                    this.setStyle("skinClass", MySkinClass);
            ]]>
        </fx:Script>
        <s:Button label="Change BackGroundImage" click="btn_click(event);"/>
    </s:Application>
    MySkinClass
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <!-- host component -->
        <fx:Metadata>
            [HostComponent("spark.components.supportClasses.SkinnableComponent")]
        </fx:Metadata>
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
        <s:BitmapImage source="@Embed('image1.jpg')"  smooth="true" left="0" right="0"  top="0" bottom="0"  />
    </s:Skin>
    with Regards,
    Shardul Singh Bartwal

  • Pages 5 can't change background color in fullscreen

    There's no option to change background color when in fullscreen mode anymore.
    Did I miss something or did apple just...get rid of it?????why???

    Hi, Mark,
    Under the Format menu select Advanced and the click on Make Master Objects Selectable. Now click on the red area. You'll notice little faint x's at the corners. In the Arrange menu click on Unlock. Now you can edit the color. (In this case a gradient.) When you finish, go back and Lock it again and deselect Make Master Object Selectable.
    Walt

Maybe you are looking for

  • What's the best way to partition my disk with Vista, Arch, and data?

    Hey everybody, I'm in a bit of a quandary here and I'd love a bit of help. I have a 320 GB hdd on my new laptop. I want to dual boot Windows Vista and Arch, with a shared partition for data in between. I have Windows Vista installed with 110 GB of un

  • Adobe Flash player keeps crashing, but it's up to date on my computer. So is Firefox. Help?

    For some reason, starting today, every page I visit on Firefox (no matter what) comes up with a notification that the Adobe Flash Player plugin has crashed. It started when I was trying to attach a word document to an email to one of my professors on

  • Migration Assistant can't find my hard drive - can you help?

    Hi, I've just bought a new MacBook Pro (Lion) as my 6 year old iMac (Snow Leopard) has died. I wanted to restore my data from my iMac, via my Time Machine back-ups which are stored on a WD MyPassport. When using the migration assistant, I've followed

  • Change configuration of Admin Server (SOA Suite 11g)

    Hi! I'm using SOA Suite 11g. I've installed SOA Suite 11g on a remote machine and I want to access the Oracle Fusion Middleware Control remotly but I can't. I can only access locally by launching a browser on the local machine. How I can configure th

  • A V Cable

    I have just bought the Apple Component A V Cable for my Ipod Touch, using this cable to connect the Touch to my T V, I can display my photo library, video and You Tube, but will not let me display the internet, or my album covers on the TV screen. Wh