Getting background color

How can i get the background color from an external swf file?
(or even from the main swf file)
I'm loading the external swf with:
moviecontainer = _root.createEmptyMovieClip("moviecontainer",
10);
moviecontainer.loadMovie("pacman.swf",0);
I tried to do get the background color of pacman.swf with
moviecontainer.backgroundColor,
moviecontainer._root.opaqueBackground,
moviecontainer._root.backgroundColor and
moviecontainer._root.background. All of these returned 'undefined'.
Does anyone know how to get the background color of this
external swf file, or even how to get the background color of the
main swf file (which contains this script)?

I can see that could work in some cases, but in this
particular case the external swf (that's loaded with loadMovie())
oesn't use it's own background color, but just inherits the
background color from the main swf file.
When using the BitmapData class, i just get the background
color from the main swf, rather than the external swf. There might
be some problems with your method as well, because there could also
be other objects blocking the background color at (x;y).
Is there any other proper way to get the background color
from a swf?

Similar Messages

  • How to get background color in MVC programming

    Hi Experts,
    I am new to BSP.
    I am working in CRM 7.0 version and designing a view using MVC method in BSP.
    I have two doubts::
    1. How can i get background color in a view ?
    2. How can i attach a picture, that is in paint-brush, in background ?
    Thanks in Advance.
    Nitin Karamchandani.
    Edited by: Nitin Karamchandani on Jun 3, 2009 8:10 AM

    Hi,
    several html tags have the attribute bgcolor, like
    <body bgcolor="red">  or <body bgcolor="RRGGBB">  where RR, GG, BB is an hexadecimal value according to RGB color palette.
    you can also work with CSS and in this case you affect the attribute style, which is also available in several tags:
    document.body.style.backgroundColor="#EEEEEE"

  • How to get background color of controls ?

    Hello everyone.
    How to get background color of controls ?
    When we use AWT/Swing,
    we can get background color of component by using Component.getBackground()
    It is regret that I can not find any method for such a method in JavaFX.
    And how do we detect the change of background color of controls ?
    Best regards.

    Hi Tadashi,
    try this.
    @Override
    public void start(final Stage primaryStage) {
        primaryStage.setTitle("Test ChangeListener");
        Button btn = new Button();
        btn.setText("change background");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                primaryStage.getScene().setFill(Color.rgb(
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255)));
        StackPane root = new StackPane();
        root.getChildren().add(btn);
        primaryStage.setScene(new Scene(root, 300, 250));
        primaryStage.getScene().fillProperty().addListener(new ChangeListener<Paint>() {
            @Override
            public void changed(ObservableValue<? extends Paint> arg0, Paint arg1, Paint arg2) {
                System.out.println(
                        "old color: " + arg1.toString()
                        + ", new color: " + arg2.toString());
        btn.getOnAction().handle(null);
        primaryStage.show();
    }Peter

  • Problem printing to jpg - only get background color

    Sometimes when I print to a jpg all I get is the background color.  I can't see any pattern as to when this occurs and when it doesn't.  (LR4, Win7, original files are CR2) Any clues?
    thx,
    John

    No question mark - all appears normal in the Library and Develop Modules, regardless of the view.  There's no indication that it will happen prior to it happening that I've been able to detect.  The black files are quite small (40k - 50k as I recall) which is reasonable for a solid color jpg.

  • All Cells are Not getting Background Color in WAD

    Hello All,
    I have a query with 29 Columns and Nearly 1000 Rows.
    This query is being displayed through WAD.
    I have used  com.sap.ip.bi.rig.Format to color different columns : e.g.
    1st - 8th column -> Color Green
    9th - 10th -> Color Red etc.
    Also, in the Analysis Web Item properties, the values are:
    BLOCK_COLUMN_SIZE = 50
    BLOCK_COLUMNS_STEP_SIZE = 1
    BLOCK_ROWS_SIZE = 1000
    BLOCK_ROWS_STEP_SIZE = 0
    My Issue: For all columns , a few of the Cells are not getting colured. They are absolutely random.
    When I reduce the data volume (restrict to some region), all the columns are properly colured.
    Please Help to fix the issue.
    Thanks,
    Mainak

    Closing the thread as seems below note answers my query:
    1648692  Modification Format styles not applied on huge result set
    Thanks,
    Mainak

  • FrameMaker10 - Windows 7 - How to get background color for a paragraph tag?

    I am trying to create my heading1 with a background like the picture above.
    I have put the blue background on a master page, but the body frame goes into the blue background and subsequently the blue background does not show through.
    Any ideas?
    Thanks,
    Cindy

    I can't test this right now, but I remember that when extracting a TOC, table title paragraphs appear out of order when mixed with main-text-flow paragraphs, because of the way that FM keeps track of table information. I'm not sure if the problem also affects paragraphs in table cells.
    Colors behind text is a frequent request. It's always a good idea to post a formal feature request here: Wishform. Eventually user requested features have been known to appear in future FM releases.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Arnis Gubins wrote:
    Cindy, I missed the fact that you're title is centred in the block. You could use a single-cell table construct to hold the contents for the title and have the title paratag set to be in the middle of the cell. (you could also colour the cell and skip colouring on the Master page).
    There are always multiple ways to do things in FM, that's why it sometimes seem so hard to use...

  • Cannot get background Div colors to print

    I am developing a site in DW and I cannot get background
    colors to print in either a table or layer. This occurs in IE7 and
    Firefox.

    Hi,
    You've turned on background colour printing in IE and
    Firefox, right?
    Print background colours (Internet Explorer):
    With Internet Explorer open, click on Tools -> Internet
    Options... This will
    open a dialogue box, where you will need to select the
    'Advanced' tab.
    Scroll about half way down the settings list, and you will
    find a 'Printing'
    setting. Tick the 'Print background colors and images'
    option. Then Click
    OK.
    Print background colours (Firefox):
    With Firefox open, click on File -> Page Setup... This
    will open a dialogue
    box, where you will need to select the 'Format & Options'
    tab. Tick the
    'Print Background (colors & images)' option. Then Click
    OK.
    Cheers,
    Chris.
    "mallygees" <[email protected]> wrote in
    message
    news:ek0f5a$8s1$[email protected]..
    >I am developing a site in DW and I cannot get background
    colors to print in
    >either a table or layer. This occurs in IE7 and Firefox.

  • My background color for all pages has changed to pink, how do I get it back to white?

    The background color in all of my screens has switched to pink. How do I get it back to white? I wonder if it changed when I was shopping in a web site and had clicked on a pink watch(?)

    Check the default color settings:
    *Tools > Options > Content : Fonts & Colors > Colors
    * [X] "Allow pages to choose their own colors, instead of my selections above"
    *https://support.mozilla.com/kb/Changing+fonts+and+colors

  • Is there any way to get the black background color back in fullscreen mode?

    The current background color in fullscreen mode is grey and it's distracting.  It used to be black.  Is there a way to change the color outside of the document boundaries?

    AndyboyMac wrote:
    The only way you can get themes for your ipod is by a jailbrake, jailbraking is illegal, and yes,, you can downgrade your iOS.
    Jailbreaking is actually not illegal due to exemptions in the DMCA documentation (http://en.wikipedia.org/wiki/IOS_jailbreaking#cite_note-22).
    I've got no explanation on to why the trusty interface for the old iPod style app was butchered, unfortunately (I think we're all at a loss, besides someone being given too much free reign). I came here to supplement the original question with, another alternative question:
    Is there a way, similar to downgrading 3rd party apps, downgrade the Music app or restore the old iPod app as an additonal app? Without jailbreaking?
    < Edited By Host >

  • Background color gets offset in Configurator and Photoshop (Mac OS)

    I have a panel with a HTML widget. I set the background color with CSS to #d6d6d6 to match Photoshop. However, my panel does not get the color I picked for it, instead it gets the color #cdcdcd (a slightly darker gray).
    As a workaround I set the color to #dedede which will then become #d6d6d6 and thus matching the gui of Photoshop.
    So far so good.
    On the Mac.
    Today I noticed that on Windows my panel is too bright...
    So it seems to be a Mac OSX thing. Anyone know what's going on here?

    So far I'm using a workaround where I check the OS of the user with javascript. I then change the background color accordingly.
    Cheers

  • Can I get different background colors on menu items?

    I've been trying to get different background colors on my menu (Quick launch) items for a while, without success. What I want is the even numbered items (the second, fourth, sixth...) to have a different background color than the uneven ones (first, third,
    fifth...).
    Anyone knows if this can be done?
    Thanks, guys!

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • Getting current terminal background color

    is there any way to retrieve the current background color in the active terminal (xterm/konsole/whatever)? preferably in c.
    tnx.

    in C it wouldn't be that hard, however it gets difficult when you talk about different WMs...
    Basically, you iterate over each top level window (the frame)... but you'd need a way to determin which child of the fram is the application (the title bar, buttons, and possibly status bar are all children as well).
    Then you just call a "property get" on the app window...
    the main difficulty is going to be different window managers...

  • How to get the foreground/background color in photoshop.

    I want to get the foreground or background color at runtime ( by any action ) in photoshop.
    What steps should I follow.

    For example here is a script I use within Photoshop Actions to save and restore the users foreground and background colors so the action can mess with Photoshops foreground and background colors during its processing.
    SaveAndRestoreColors.jsx
    /* ======================================================================================
    // 2009  John J. McAssey (JJMack)  http://www.mouseprints.net/
    // This script is supplied as is. It is provided as freeware.
    // The author accepts no liability for any problems arising from its use.
    // This script is designed to be used by a Photoshop Action twice
    // A good pratice to use when creating an actions that use this scipt is for the action
    // not to do a save or play some other action between its two useages of this Script.
    // The first time this script is used by an action Photoshops Current Forground
    // and Background Colors are saved into the document's meta-data Info Instructions field.
    // The second time this script used by the action the script retreives what was
    // saved in the meta-data during the first usage and these colors are set.
    // and the saved data is removed from the document's meta-data Info Instructions field.
    // ===================================================================================== */
    <javascriptresource>
    <about>$$$/JavaScripts/SaveAndRestoreColors/About=JJMack's SaveAndRestoreColors.^r^rCopyright 2009 Mouseprints.^r^rRun twice script utility for action.^rNOTE:Don't play other actions between runs!^r^rFirst Run records Photoshops foreground and background swatch colors.^rSecond Run restores the recorded colors and removes the recording.</about>
    <category>JJMack's Action Run Twice Utility</category>
    </javascriptresource>
    if (app.documents.length > 0) {
    if (app.activeDocument.info.instructions.indexOf("<Colorf>") == -1 ){ // no footprint fisrt useage
    //alert("first");
    // Retreive Document information for Foot Print
    saveforeColor = new SolidColor;
    saveforeColor.rgb.red = app.foregroundColor.rgb.red;
    saveforeColor.rgb.green = app.foregroundColor.rgb.green;
    saveforeColor.rgb.blue = app.foregroundColor.rgb.blue;
    savebackColor = new SolidColor;
    savebackColor.rgb.red = app.backgroundColor.rgb.red;
    savebackColor.rgb.green = app.backgroundColor.rgb.green;
    savebackColor.rgb.blue = app.backgroundColor.rgb.blue;
    // put footprint in metadata info instructions
    app.activeDocument.info.instructions = app.activeDocument.info.instructions + "<Colorf>" + saveforeColor.rgb.red + "," + saveforeColor.rgb.green + "," + saveforeColor.rgb.blue + "</Colorf>" + "<Colorb>" + savebackColor.rgb.red + "," + savebackColor.rgb.green + "," + savebackColor.rgb.blue + "</Colorb>";
    //alert( "Saved ="  + "<Colorf>" + saveforeColor.rgb.red + "," + saveforeColor.rgb.green + "," + saveforeColor.rgb.blue + "</Colorf>" + "<Colorb>" + savebackColor.rgb.red + "," + savebackColor.rgb.green + "," + savebackColor.rgb.blue + "</Colorb>");
    else {
    //alert("second");
    // Retreive saved information
    colorfOffset = app.activeDocument.info.instructions.indexOf("<Colorf>") + "<Colorf>".length;
    colorfLength = app.activeDocument.info.instructions.indexOf("</Colorf") -colorfOffset;
    saveforeColor = app.activeDocument.info.instructions.substr(colorfOffset, colorfLength);
    colorbOffset = app.activeDocument.info.instructions.indexOf("<Colorb>") + "<Colorb>".length;
    colorbLength = app.activeDocument.info.instructions.indexOf("</Colorb") -colorbOffset;
    savebackColor = app.activeDocument.info.instructions.substr(colorbOffset, colorbLength);
    //alert("Colorf = " + saveforeColor + " Colorb = " + savebackColor );
    // Restore Colors
    app.foregroundColor.rgb.red = saveforeColor.substr(0,saveforeColor.indexOf(","));
    saveforeColor = saveforeColor.substr(saveforeColor.indexOf(",") + 1,saveforeColor.length);
    app.foregroundColor.rgb.green = saveforeColor.substr(0,saveforeColor.indexOf(","));
    saveforeColor = saveforeColor.substr(saveforeColor.indexOf(",") + 1,saveforeColor.length);
    app.foregroundColor.rgb.blue = saveforeColor ;
    app.backgroundColor.rgb.red = savebackColor.substr(0,savebackColor.indexOf(","));
    savebackColor = savebackColor.substr((savebackColor.indexOf(",") + 1),savebackColor.length);
    app.backgroundColor.rgb.green = savebackColor.substr(0,savebackColor.indexOf(","));
    savebackColor = savebackColor.substr(savebackColor.indexOf(",") + 1,savebackColor.length);
    app.backgroundColor.rgb.blue = savebackColor ;
    // Remove footprint from metadata info instructions
    before = app.activeDocument.info.instructions.substr(0,app.activeDocument.info.instructions.indexO f("<Colorf>"));
    afterOffset = app.activeDocument.info.instructions.indexOf("</Colorb>") + "</Colorb>".length;
    after = app.activeDocument.info.instructions.substr(afterOffset, app.activeDocument.info.instructions.length - afterOffset);
    //alert ("before = " + before + " after = " + after);
    app.activeDocument.info.instructions = before + after;
    else { alert("You must have at least one open document to run this script!"); }

  • Uitableview grouped style-is there any way to get section background color

    hi all,
    So far i have tried myself and searched everywhere but didnt figured out that is there any way to get section background colors different for each sections in grouped style tableview.
    If anyone has tried something to get such thing would really be helpful to me.
    Thanks,
    C.P.

    Have you tried this? [http://stackoverflow.com/questions/813068/uitableview-change-section-header-co lor]

  • Get/read stage background color

    hello one and all,
    how do you read or get the stage's background color?
    then, how do you set the fill color of that stage color to a drawing object under a movieclip symbol?
    using flash cs4 and as3.
    lucas

    use a movieclip or sprite at depth 0 to cover the stage and control its color.

Maybe you are looking for

  • Job Cancelled in SM37

    Hi all, Job is cancelled in sm37 daily from 7th december onwards. We have 4 process chains in our project and all the chains are ok when i am checking in RSPC,and the data is being loaded into the respective cubes and ods. The error message is like J

  • Session Timeouts for Apps deployed on separate domains

    Hi, Jdeveloper : Studio Edition Version 11.1.1.2.0 , Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536 Platform: Linux, Windows I am observing something strange with session timeouts when 2 apps are deployed to 2 separate WLS instances. Here is what

  • How can I run Premiere 6.0 on windows 8?

    I have an old copy of Premiere 6.0 from 2000/2001 that I wish to try to install on Windows 8. It will not work even when I run the compatability settings. Is there a way around this? Windows 8 doesn't have an XP Mode either, which apparantly was the

  • Error while installing Oracle grid/Database vault in win XP service pack3

    Hi, I am trying to install oracle database grid 10.2.0.2 in win xp service pack 3. It's giving the below error. "Could not find the main class. Program will exit" When I am installing Database grid 10.1.0.3 it's getting installed. I also have java 1.

  • Unmanaged code doesn't execute in /CLR x64 project

    With VS2012, I created a CLR Windows Forms Application.  I then added a solution platform for x64 with 'copy settings' from Win32.  I added an unmanaged function called TestFunction.  I'm unable to put a break point in TestFunction and when I run the