Problem with overlapping background animation loop

I recently found a great extract AC code that allows a smooth looping animation.

The only problem is that animation looping sometimes will show on top of all my other layers even if the layer in the middle. Since it is an Action Script, I am safe to assume I need something here to tell him to stay near the Middle, somehow.

I tried to fix this, but continue to receive randomly pause and thought that I would like to ask the community.

It's my current setup

Starts on Scene1, then move on to the next scene 2 after 25 images

  • Presentation (25 images long) layer
  • Grid (Action Script below) loopback * Overlaping all layers
  • Static background (never moves) * who need the animation just above this layer

The speed of the scroll movement.

var scrollSpeed:uint = 2;

This will add two instances of the clip on the stage.

var s1:ScrollBg = new ScrollBg();

var s2:ScrollBg = new ScrollBg();

addChild (s1);

addChild (s2);

This positions the movieclip second next to the first.

S1.x = 0;

S2.x = s1.width;

Adds an event listener to the stage.

stage.addEventListener (Event.ENTER_FRAME, moveScroll);

This function moves the two images on the left. If the first and second

images will pass the limit of the left scene then it is moved to

the other side of the stage.

function moveScroll(e:Event):void {}

S1.x = scrollSpeed;

S2.x = scrollSpeed;

If (s1.x <-s1.width) {}

S1.x = s1.width;

} ElseIf (s2.x <-s2.width) {}

S2.x = s2.width;

}

}

If someone could help me understand why this is the case, I would be most grateful and thankful.

If I need to show my work, I can provide a link if asked.

Thank you

TDR

a way to do what you want is to place a dummy movieclip on the layer where you want as your bg s to appear.  give it an instance name (for example, bgParent) and use:

bgParent.addChild (s1);

bgParent.addChild (s2);

Tags: Adobe Animate

Similar Questions

  • problem with the background intelligent transfer service

    My computer is current only. I checked to see if a problem happens and ran the following messages:
    Potential of database of Windows Update Error 80070002 detected 0 x
    Windows Update needs to be repaired
    Problem with (BITS) Background Intelligent Transfer Service
    I'm using Windows 7 Home Basic Edition
    Service Pack 1
    64-bit operating system

    reference http://support.microsoft.com/kb/910336

  • Problem with autoplay HTML animation

    Hi guys, I have some problems with the HTML animation where to get an overview of my content on the adobe Viewer. Maybe you know how to solve this problem...

    My Folio contains 1 atricle with 5 pages. The first page is static, the other - page with an animation that should be presented when this page (autoplay). the third and fourth - game animation as automatic, the last - static page.

    Seems that next page is cached when preview us the page in the adobe Viewer, so when we sail directly to the second page, which contains animation - animation on the page is partially played, so we see only the rest of the animation or just the final animation point. Go to the next page - the same question. But when we sail from first page to the third-, we see animation from the start.

    How can this problem be solved?

    PS: Sorry for my English :")

    You must insert a little late in the web content window... delay = 0.125 second

  • Problem with css background

    Hey guys, I have a problem with a code. I have some divs nested inside a container for body copy dive, but I have a problem with the background of the div container behind the nested divs. I have this problem with the background, when am I going to float the nested divs.

    Here's a copy of my html code as well as a copy of my related css stylesheet.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Welcome to Optimus Lens</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    </script>
    <style type="text/css">
    #sector {
         background-repeat: no-repeat;
         background-position: left;
         width: 869px;
         margin-top: -51px;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    }
    #oag {
         width: 574px;
         margin-left: 23px;
         float: left;
         /* [disabled]position: relative; */
    }
    #small_col {
         width: 279px;
         margin-right: 23px;
         float: right;
         /* [disabled]position: static; */
    }
    </style>
    </head>

    <body onload="MM_preloadImages('images/home_over.jpg','images/our_mission_over.jpg','images/products_over.jpg','images/news_over.jpg','images/order_over.jpg','images/contact_over.jpg')">
    <div id="CONTAINER">
           <div id="header"><img src="images/header_top.png" width="916" height="39" />
           <img src="images/header_logo.jpg" width="916" height="95" />
          <img src="images/header_image.jpg" width="916" height="266" />
           <img src="images/header_bar.jpg" width="916" height="9" />
    </div>
     
          <div id="menuContainer">
       
         <!-- NAVIGATION -->
            
                    <ul>
                    <li>
                    <img src="images/fold_left_top.png" width="22" height="35" /><img src="images/menu_left.jpg" width="197" height="35" />
                    </li>
                    <li>
                        <div class="menu n1"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/home_over.jpg',1)"><img src="images/home_up.jpg" alt="home" name="home" width="66" height="35" border="0" id="home" /></a></div></li>
                    <li>
                      <div class="menu n2"><a href="mission.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Our Mission','','images/our_mission_over.jpg',1)"><img src="images/our_mission_up.jpg" alt="Our Mission" name="Our Mission" width="124" height="35" border="0" id="Our Mission" /></a></div></li>
                    <li>
                        <div class="menu n3"><a href="products.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Products','','images/products_over.jpg',1)"><img src="images/products_up.jpg" alt="products" name="Products" width="98" height="35" border="0" id="Products" /></a></div></li>
                    <li>
                        <div class="menu n4"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('News','','images/news_over.jpg',1)"><img src="images/news_up.jpg" alt="News" name="News" width="77" height="35" border="0" id="News" /></a></div></li>
                    <li>
                        <div class="menu n5"><a href="order.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Order','','images/order_over.jpg',1)"><img src="images/order_up.jpg" alt="Order" name="Order" width="77" height="35" border="0" id="Order" /></a></div></li>
                    <li>
                      <div class="menu n6"><a href="contact.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','images/contact_over.jpg',1)"><img src="images/contact_up.jpg" alt="Contact" name="Contact" width="80" height="35" border="0" id="Contact" /></a></div></li>
                    <li>
                      <img src="images/menu_right.jpg" width="197" height="35" /><img src="images/fold_right_top.png" width="22" height="35" /> </li>
                    </ul>
       
          </div>
           <div id="header_bottom"><img src="images/fold_left_bottom.png" width="22" height="38" /><img src="images/header_bottom.jpg" width="916" height="38" /><img src="images/fold_right_bottom.png" width="22" height="38" />
        </div>

         <div id="bodycopy">
           <div id="sector">
          <img src="images/home/sector_top.png" width="869" height="341" alt="sector frames" />
          </div>
         
           <p> </p>
         
           <div id="oag">
          <img src="images/home/oag_join.png" width="574" height="281" alt="save with oag" />
          <p> </p>
          <img src="images/home/bottom.png" width="574" height="132" />
          </div>
         
          <div id="small_col">
          <img src="images/home/optimize_small.png" width="279" height="132" />
          <p> </p>
          <img src="images/home/intuition_small.png" width="279" height="132" />
          <p> </p>
          <img src="images/home/intuition_small.png" width="279" height="132" />
          </div>
         </div>

        <div id="footer"><img src="images/footer.png" width="916" height="52" />
      </div>
    </div>
    </body>
    </html>

    body {
         margin: 0px;
         background-image: url(images/background_fade_04.jpg);
         background-repeat: repeat-x;
         background-position: top;
         background-color: #DCDCDC;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 13px;
    }
    #box1 {
         background-image: url(images/bodycopybox_01.png);
         background-repeat: no-repeat;
         background-position: left;
         height: 54px;
         width: 869px;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    }

    #box2 {
         background-image: url(images/bodycopybox_02.png);
         background-repeat: repeat-y;
         background-position: left;
         width: 869px;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    }
    .bodycopybox {
         padding-right: 40px;
         padding-left: 40px;
    }
    .bodycopyboxheader {
         padding-right: 40px;
         padding-left: 40px;
         font-weight: bolder;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 14px;
         color: #21368b;
    }



    #box3 {
         background-image: url(images/bodycopybox_04.png);
         background-repeat: no-repeat;
         background-position: left;
         height: 31px;
         width: 869px;
         margin:0 auto;
    }

    #box4 {
         background-image: url(images/bodycopybox_03.png);
         background-repeat: no-repeat;
         background-position: left;
         height: 31px;
         width: 869px;
         margin:0 auto;
    }

    p {
         margin: 0px;
    }

    #header_bottom {
         width: 960px;
         margin:0 auto;
    }

    #CONTAINER {
         width: 100%;
         margin:0 auto;
    }
    #header {
         width: 916px;
         margin:0 auto;
    }
    #menuContainer {
         width: 960px;
         margin:0 auto;
         height: 35px;
    }
    #menuContainer ul{
         list-style:none;
         height:35px;
         margin:0;
         padding:0;
    }
    #menuContainer li{
         float:left;
         height:35px;
         margin:0;
         padding:0;
    }
    #menuContainer li a{
         text-align:center;
         float:none;
         height:35px;
         margin:0;
         padding:0;
    }
    div.menu{position:relative;}
    .n1{
         width:66px;
         float:left;
         display:inline-block;
         clear:both;
    }
    .n2{
         width:124px;
         float:left;
         display:inline-block;
         clear:both;
    }
    .n3{
         width:98px;
         float:left;
         display:inline-block;
         clear:both;
    }
    .n4{
         width:77px;
         float:left;
         display:inline-block;
         clear:both;
    }
    .n5{
         width:77px;
         float:left;
         display:inline-block;
         clear:both;
    }
    .n6 {
         width:80px;
         float:left;
         display:inline-block;
         clear:both;
    }
    #bodycopy {
         background-color: #FFFFFF;
         width: 916px;
         padding: 0px;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    }
    #footer {
         width: 916px;
         margin:0 auto;
         padding: 0px;
    }

    Hey guys, I have a problem with a code. I have some divs nested inside a dive of container for the body copy, but I have a problem with the background of the div container behind the nested divs. I have this problem with the background, when am I going to float the nested divs.

    I come to this quote.  The background of this div container is set to white (#FFF).  The other 3 that are nested inside have no defined background.  There are images placed inside them, but nothing of what happened to the bottom, so if it is empty it should inherit the parent container which is white.

    Can you show us a screenshot or view the page online for testing?

  • Problem with the background and the development

    Hi people!

    I have a little problem with my request, in this application, I have a background (bitmap) and 6 icons (bitmap) focusable.

    OK all going well but the problem is when I move the focus and the first and the last icon gets a white Home > _

    I don't know how to explain it better, but is simple, for example im on the first icon from the left and move to the left, another time and this Dungeon icon the focus but the focus changes to white, on the last icon is the same movement as the focus to the right (the last icon is on the right) and the focus change again in white... , where to move the focus icon back to normal.

    Usually, the icons have image development, I added this to the bitmapfield and eliminated the blue accent.

    protected void (_g, Boolean _on Graphics) drawFocus {//do nothing}

    Hello

    Replace your inside your BitmapField drawFocus() method (free and Ocupado) as below:

    protected void drawFocus(Graphics _g, boolean _on)
    {
         paint(_g);
         invalidate();
    }
    

    Concerning

    Bika

  • Problem with Adobe character animation

    I have a problem with Adobe character, when I open it (for After Effects and a free program), I got an error message: "License failed because an asset after the installation of 2015 CC effects could not be found. If please reinstall After Effects and launch it to sign in the creative cloud. ' Y at - he moved to a file or a license to copy file... Please help me I can not use the character animator! THX!

    Try to connect then back in creative cloud. See this FAQ: FAQ: what does the error Licensing "Licensing failed because an asset after the installation of 2015 effects CC not found." mean?

  • I have a problem with the background update

    I pushed on Adobe Acrobat Reader DC via MSI for all my workstations that are Windows 7 machines.  The installation went without any problems, but I didn't know that the program updates automatically and it is in the diary of the events of these errors.  Product: Adobe Acrobat Reader DC - update '{AC76BA86-7AD7-0000-2550-AC0F084E7200}' could not be installed. Error code 1625. Windows Installer can create logs to help solve the problems with the installation of software packages.  Is there a way I can either A) disable these automatic updates or B) force these updates to cross even without administrator privileges?

    Hi orangejake1990,

    Disable you updates in Acrobat Reader ms, please refer to this link Windows updates.

    Otherwise, you can manually download the updates Adobe - Adobe Reader: for Windows & push.

    Kind regards

    Nicos

  • PROBLEM WITH BITS (BACKGROUND INTELLIGENT TRANSFER SERVICE) AND WINDOWS ~ $BT IS NOT CREATED EVEN AFTER ALMOST 25 DAYS OF RESERVE WIN 10 COPY THROUGH "GWX.

    Hey, I heard that the problem was actually the service "background intelligent transfer service" has been collapsed don't know when and how it was stopped. I STARTED THE YESTERDAY(12-OCT-2015) SERVICE AND SET IT TO AUTOMATIC (PREVIOUSLY HAS BEEN SET TO MANUAL). THAT IS WHY I HAVE NOT FOUND THE WINDOWS ~ $BT FOLDER SINCE I RESERVED(18-SEP-2015). I CAN'T EVEN TODAY (13 OCTOBER 15). I HAVE a PROBLEM HERE, THAT PIECES OF ROUND BUT AFTER 2 OR 3 BOOTS, IT BECOMES AUTOMATICALLY ARRESTED AND SET to AUTOMATIC (DELAYED START), that - what THIS MEANS? HOW TO MAKE IT (BITS) ON FOREVER. PLEASE HELP PLEASE HELP? WILL NEVER GET MY FREE COPY OF WINDOWS 10 THROUGH 'GET WIN10 APP '. PLZ ANSWER. PLEASE.

    Hello

    Thanks for posting your query to the Microsoft forum.

    I appreciate your efforts to try to solve the problem and I will definitely help you with this.

    BITS may stop if there is corruption in the Windows files, we can try these methods to solve them.

    Method 1: Run SFC scan

    I suggest that you can exercise SFC scan and check if that helps. The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions. It is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files.

    See the link: use the File Checker system to repair missing or corrupted system files

    If this does not help, follow method 2.

    Method 2:

    Please try these steps below and check:

    1. Press the Windows key on the keyboard
    2. Type command line
    3. Right click on and run as administrator

    Step 1: Run the following command at the command prompt with administrative mode.

    SC create BITS binpath: "c:XwindowsXsystem32Xsvchost.exe - k netsvcs" start: delayed-auto

    Step 2: Run these commands one by one in the box RUN or 'Command Prompt'

    regsvr32 oleaut32.dll

    regsvr32 jscript.dll

    regsvr32 vbscript.dll

    regsvr32 msxml.dll
    regsvr32
    softpub.dll
    regsvr32 wintrust.dll

    regsvr32 initpki.dll

    regsvr32 cryptdlg.dll

    regsvr32 qmgr.dll

    regsvr32 qmgrprxy.dll

    Step 3: Restart computer

    You can also download the Windows 10 from the link below and check.

    Download Windows 10 and run the installer from the desktop.

    Note: I strongly recommend to back up all your important files and folders on an external storage device before performing the installation.

    Please post back with the results. We will be happy to help you further.

    ________________

    Thank you best regards &,.

    Isha Soni

  • Problems with transparent background images

    Hello!

    I have a transparent background (in PNG format) image and when I import it in first, is displayed with a black background. How to solve this problem? Could you help me, please?

    Transparency in the dark shows.

    Put an image under the image in the timeline to check if they have really no transparency.

  • problem with layer background

    This happened about 3 weeks ago.  I have scanned the internet and have not found any problem like this.  It may be something simple that I'm just missing.  The problem is when I open a pix or anything and click to crop or resize, I lose my background layer that has the lock on it.  For some reason any as soon as I get anything, it immediately becomes the first layer and my background layer has disappeared.  Yes, every time when I go to save something (unless, of course, I didn't have to crop or resize), I always flatten image first to get it as a jpg.  I need my coat because I work with layers a lot and it will become more difficult now.  Anyone know why this could happen or what do I do next?  Thanks in advance!

    PS... someone please answer because I posted this on other places and I have never answers.  I don't have an issue with redownloading photoshop, but I am only the monthly fee of photographer and cannot find where to download it again since I did that once already.

    I think that your problem is related to not have Delete the cropped Pixels checked in the toolbar options for the crop tool.

    Delete with cropped uncontrolled Pixels, photoshop will unlock the background layer, if it is the only layer in your document.

    (turn the background layer to a regular layer Layer)

  • Problem with several title Animations

    Hi, I'm fairly new to first items 11 and I'm working on a video project where I want to add a title that fades and then faints. I started by adding a "default text" title to a video track my main video above, typing in my title (what a single line of text), and then apply animations. This is where my first problem occurred; the program would only allow me to apply an animation to the title (for example, I might add "bland online in" but if I tried to add "fade out online" so he would turn just animations) vaulted around that, I tried to divide my title in half and adding the fade in animation of the first half and the fade out animation of the second half. For some reason, first has linked these titles together so if I add animation to one, it applies to these two titles. I tried to put each half of the title on different tracks, but it did not work; they always act like they are a title when it comes to apply animations. He seems to have a fade in / fade out title is something fairly common and easy to do, so I hope you experts out here can help, thank you very much!

    -ETRK

    P.S. As for the system, I am under first elements 11 on a Windows 7 desktop computer powerful enough

    ETRK,

    Instead of 'splitting' your title, use the command duplicate titration module, to create a copy of this title and name is differently, say 'Title_Name' 02. Place the two titles on the same video track, adjust the duration, according to your needs with two titles and apply an animation effect to one, then another Animation effect to another.

    Another workflow would be to ignore the preset animations and those by effect Keyframes, build say opacity. Which is not quite as simple as the preset animations, but allows much more control.

    Good luck

    Hunt

  • Problem with overlap pre rendered scenes...

    Sorry if what I say doesn't make much sense... I have taught myself how to use After Effects two days ago, and I spent about 35 hours on it since then by a typography video.  Everything was fine and dandy so far, except at random (I guess randomly, maybe I hit the function badly or something of the sort) when I do a RAM preview it will preview only the first minute of my video. Up to this point, he has no problems preview all of my video (which is 2 minutes and 15 seconds).

    However, it is not that a big deal for me, I can work through that. What makes things especially difficult is when I overlap the pre rendered scenes (Shift/Ctrl/C function. I have use for every sentence in the typography video) I can't see the original scene when I specifically in a scene. He is probably confused, then maybe a small illustration will help.

    ------------------------------>

    ______________---------------->

    The dotted lines show which is a section of text in the video, underscores are simply used as placeholders for this demonstration (you want to make sure that the formatting is not ruin that is why I did this instead of simply putting spaces.)

    Now, if I go in that on the bottom, while the one on the top it overlaps I see it while I have it change. I don't see why he stopped doing this, and I can't continue until it is resolved. Any suggestions?

    If it's too complicated, I can go and take screenshots, which certainly isn't a problem.

    Now that I see the screen shot 82 and compare it with 81 I think I know what is happening.

    You have 11 demo who lives in the model 1 and you want to change the items in the model 11 while watching Comp 1.

    You're never going to be able to see items in the chronology of Comp 1 below the elements of the nested demo called model 11 because they aren't there, they're in Comp 1

    You can, however, open a second window of editing by clicking on the edge of the 11 Comp tab and drag it just above the timeline so that you can see both calendars. You can do the same with the windows of the model. You can have 2 of them open at the same time. Then you just lock one of points of view model 1, and you can see how the changes in 11 will look in 1 Comp.

    It's called ELAT. Edit this, look at this. I use it all the time. Open several chronologies and the compose window locked to the model I want to keep looking at. You lock the window of the model with the small latch just to the left of the name in the tab for the comp comp. sometimes, I have two composition windows open, sometimes I have two time stacked one on the other. It depends on.

    If you need I can put up a screenshot of its operation later. Now, I need to take a train to SFO

  • Problem with the background color of a disabled control

    I have a few controls on the top a box colored and elevated. When I disable and gray (round button) control an adverse change occurs in the background color of the control-it gets surrounded by a grey version of the color of the raised area. I would like that the bottom remains the same as it does on the default gray Panel.

    I looked through all of the properties, but can't seem to change this behavior.

    Thanks for the link, looks that it may have been fixed now for controls tab (?) but no decorations. The solution is to use a tab control to single page with no tab, rather than a raised area. The difference in behavior can be seen in the joint, if we look carefully it is always a small amount of color change surrounding control disabled on the tab.

  • A problem with delays in call loops and DAQ

    I'm programming a simulation for nuclear Rewetting for a reception centre to my company in Switzerland. It is a "fuel rods" heating and then fill the water Chamber. The pump starts automatically as soon as the core of the stem reached 750 C. After that, a requirement that the flow rate be checked to ensure the operation of the pump in the necessary conditions. If not, the heating must be stopped to avoid, well... meltdown. However, we must allow 10 seconds for the pump to respond, while allowing a rate of acquisition of data from 10 to 100 Hz.

    The challenge is that I can not add a delay in my other main loop delay all acquisitions, but I can't understand how to trigger a device loop (with data acquisition for the single channel flow control) and the main loop when the loop device determines if the flow a initalised, answering the main loop with the agreement.

    I think that a large part of my confusion is in the interaction between loops and knots of default comments labview's willy nilly. The only solution would be to have two 'core' loops that do not communicate with them, but rather to do the same thing while operating different synchronization? Tell me if you want I will post the file (even if its on a unnetworked computer and I don't think that it would also be useful).

    Thank you + Curran

    Here is a version 9.0.

  • Problem with the background color setting

    Hello

    I have the following code

    public class Loading_Menu extends MainScreen {
        public Loading_Menu()
        {
            MainScreen newScreen = new MainScreen(Manager.NO_VERTICAL_SCROLL|Manager.NO_VERTICAL_SCROLLBAR);
            VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.USE_ALL_HEIGHT)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(Color.BLACK);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
            Bitmap appLogo = Bitmap.getBitmapResource("Breakout_Logo.png");
            BitmapField bmf = new BitmapField(appLogo, BitmapField.FOCUSABLE)
            {
                protected boolean navigationClick(int status, int time)
                {
                    Main_Menu myMethod = new Main_Menu();
                    myMethod.createAndDisplayMainMenu();
                    close();
                    return true;
                }
            };
    
            int leftMargin = (Display.getWidth() - bmf.getBitmapWidth()) >> 1;
            int topMargin = (Display.getHeight() - bmf.getBitmapHeight()) >> 1;
            bmf.setMargin(topMargin, 0, 0, leftMargin);
            add(bmf);
            newScreen.add(backgroundManager);
        }
    }
    

    My goal is to show the bitmap in the center of the screen and have a black background behind the image. in its current form the image shows in the Center, but the screen remains white. Can someone explain and point out my mistake?

    Thank you

    Hi Peter,.

    no problem, here is how I solved the problem. I just added an override of the method paint and this placed in a vertical field Manager

    VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.USE_ALL_HEIGHT|Manager.NO_VERTICAL_SCROLL|Manager.NO_VERTICAL_SCROLLBAR)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(0x0000A2E8);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
    
            LabelField lb = new LabelField("Hello");
            backgroundManager.add(lb);
    
            add(backgroundManager);
    

Maybe you are looking for

  • Folders in hotmail

    Anyone know if there is a way to get folders other than the Inbox, sent, deleted and garbage to replicate to the Bravo with Hotmail? Seems a little ridiculous that this is not available. It worked fine on my OLD phone. Thank you Ken

  • HP laptop - 15-r208tx: M2. Upgrade ssd SATA for my laptop

  • Having problems connecting to random websites.

    OK, here's my problem: I don't know when it started, or how, but sometimes when I search the web using Google and I click on a link to a Web site I get the following error in firefox: Unable to connect Firefox can't establish a connection to the serv

  • Another question of Simulator

    Hello I have a purchase order in my application and when I press the keyboard back button it automatically ask this question "Chages made! and with the three buttons options "Save", "Throw", "Cancel". My question: 1 is happening only on Simulator or

  • AAA GANYMEDE + accounting - CLI question by user not appear in the report of the ACS.

    Can I know why CLI cancelled by the user does not show on GANYMEDE ACS accounting report. The length of time is displayed, but I also wanted to connect what is the commands issued by the user. WHA is missing here? enable AAA authentication login VTY