How to remove yellow bounding box?

As I understand,
stage.stageFocusRect = false;
will remove the yellow bounding box around buttons in my Flash app.
However, it is throwing an error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Is there a dependency I need to import first?
Also, it is essential that I retain the ability to have key press event handlers (which is why the yellow bounding box is showing up).  So will stage.stageFocusRect remove the ability to use key press commands?
If so, is there any way to retain keypress commands and remove the yellow bounding box?
thanks

you just need to wait until your display object is added to the display list before trying to reference its stage property.  ie, use the addedtostage event:
this.addEventListener(Event.ADDED_TO_STAGE,init);
private function init(e:Event):void{
stage.stageFocusRect=false;
and your stage will still be responsive to events as usual.

Similar Messages

  • Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"

    Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"
    I have recently upgraded our portal to 7.3 sps10 and we are using the Ajax framework
    I have a requirement to Remove the Logoff Dialog box "Are you sure you want to logoff?"
    I am able to Import masthead.war into NWDS and get the project ready for development with the appropriate jar and libraries.
    I am able to deploy the project also. I need help finding How to turn this dialog box off and just log the user off. I was able to accomplish this in Classic frame work page HeaderiView.jsp.
    I have looked at afpmasthead.org.sj and masthead.jsp. I am not a js/jsp developer.
    I can see the logoff dialog box being created but I am having trouble finding the logoff code.
    Please advise me on the code changes required to remove the  Logoff dialog box "Are you sure you want to logoff?" from the Ajax framework.
    Any help on this matter would be greatly appreciated.
    Thank you
    Sarah

    Thank you Troy for your Helpful Threads.
    Problem Solution:
    Followed the thread on How to download and change AFP Masthead on SAP Portal 7.3
    Located the file which contains the logoff code from thread http://scn.sap.com/thread/3265584
    The File with the Logoff coding in it is a Javascript file afpmasthead.js
    Identified logoff code without dialog box using this thread https://scn.sap.com/thread/3307601
    NovaDialogBox.performLogout();    (perform logoff)
    I was able to remove the Logoff dialog box Do you really want to logoff? And replace it with logging the user off.
    afpmasthead.js  All the code is on 1 line,  To fix this go to -->Source -->Format
    Comment out the following lines of code and replace with logoff code
    logoffLinkElement.onmouseup= function(aS) {
    logoffLinkElement.onmouseup= function(aS) {
    NovaDialogBox.performLogout();
    Sarah

  • How to Remove the White Box from Links

    How to remove the white box around a link?
    I want to put links in my colored footer but it leaves a white box behind the link...
    Just want a text link with no background color.
    Thanks!

    Check your style sheets. Something is giving a link a background color. Look for something like this:
    .myClass a {
        background-color: #FFFF
    Then remove it.

  • How to remove white bounding text box

    Hi,
    I'm a multimedia student and need to create a portfolio in Director and would like to know how to remove the white text box when writing text content? I already have a background and would like to have plain black or white writing on the bakground, do not want the white bounding box. How do I remove that?
    Thanks

    It really depends upon what kind of text member you used, but in general, you would select the sprite on the stage, then go to the Sprite tab of the Property Inspector.  Find the Ink setting and change it to Matte or Background Transparent.

  • How to remove cash check box of T-Code TP04

    Hi Experts,
    Please guide me how to remove the u201Ccashu201D check box of u201Cadvanceu201D for T-Code TP04 in case of Travel Management Module.
    I have tried with SCHEMA settings but it is not working
    IMG Settings : Define Schema and Individual Field Control & also with Schema and Single Field Control for Web Dynpro
    Regards,

    solved

  • How to remove the square box (right side) in the drop down . by css

    i need to remove the square white box from the drop down
    by css how to do ?

    Please provide a screenshot of what you are talking about.
    https://support.mozilla.org/en-US/kb/how-do-i-create-screenshot-my-problem <br />
    It is best to use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed a maximum file size of 1 MB.
    Then use the '''Browse ....''' button below the '''''Post a Reply''''' text box to upload the screenshot.

  • How to remove the little boxes from the form

    Total newbie to .pdf files so hoping this is something easy to fix.
    We have a new process wherein we are tasked to edit a prepared form in Adobe Acrobat 8.x on Windows XP platforms.
    We open the document, put in required info, modify some fields if needed that already have info in them, and then save to a new document name and distribute.
    When we open the inital .pdf for editing, there are large boxes (with numbers in them) in every area where we need to fill in info on the form.
    How in the world do you turn those annoying things off?
    You can't even read the pre-filled info on the form as these obtrusive little boxes are displayed over top of what is typed in the form already.
    Thanks in advance!

    Oh I'm hoping not.
    If so the programmer of that little anomaly should be spanked.
    That's a horrible "feature". 
    I don't need to see those labels every time I need to fill in fields on a form.
    For example that I show, fields, 28, 29, 30, obliterate what is below them so the users are always putting in a mistyped value as they can't see that something is there in the field already...
    Hopefully that isn't what this is.
    Here's a link to the screenshot referenced in the previous reply.
    www.flickr.com/photos/thejeepnut
    And thanks again for taking a look to see if you can help resolve.

  • How to make yellow dialog box not come up when I mouse over tabs?

    I hate the little small yellow background colored dialog box that pops up when you mouse over tabs on Firefox on Mac.
    The reason why this is an in convenience on the Firefox in Mac is when a dialog box comes up and you minimize Firefox the dialog box stays there on the screen, so you have to bring Firefox to the front and then mouse over it til the box go's away, and then finally you can minimize Firefox without having the dialog box stay on your screen.
    To negate this problem I want to know if their is a way for me to disable that dialog box from coming up at all. It also comes up when I mouse over my all in one sidebar add on and I have noticed it when you mouseover links on certain sites, like in Pandora when I am mousing over the different artists in my list the little box comes up, again it's not needed and very annoying.

    you must modify '''browser.chrome.toolbar_tips'''
    type in the address bar '''about:config'''
    then press the button''' i'll be careful i promise'''
    then type in the bar '''browser.chrome.toolbar_tips'''
    then '''Double-click''' on it, to make it''' false'''
    exit firefox and restart-it.
    See for more info : [http://kb.mozillazine.org/Browser.chrome.toolbar_tips Browser.chrome.toolbar tips ]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How to remove yellow focusRect without disabling automatic focus switching using arrow keys

    Please help me out. hanging up this is for hours now..

    exactly..! but i need arrowkeys should do its job as original.. i think there might be some contraint in hiding the yellow border with key controls. is there any possibilities to make yellow border alpha 0?

  • Bounding box on graphic

    Hi you'all.
    Anyone know how to place a bounding box around a graphic?
    Thanks.
    Richard

    If you can't see it, it means that you're trying it on the background layer in which case, double click on it in the Layers panel(not on the thumbnail or the name) and click OK to turn it into a normal layer and try again

  • Bounding box of a Graphic object

    Hi,
    How can we obtain bounding box of the graphic object generated by fill etc.,
    i tried with "pathbbox" it will provide the exact x,y position but iam not able to get the height and width of the object.
    Regards,
    S.Sudhagar

    pathbbox gives the bounding box of the current path (subject to the limitations on curves described). I am not sure why you say you can't get width and height.

  • Bounding box around Text Illustrator CS2 12 Windows XP

    My computer crashed while using Adobe Illustrator and when rebooting I have lost the bounding box when typing text. Now I am unable to resize my text. Any suggestions on how to get the bounding box back? Clicking the direct selection tool does nothing. I can outline the text but still no bounding box to grab and resize.
    Should I reinstall Illustrator? Is there a default setting to go back to? If I shut down and reboot the same problem happens.

    Is it just text objects or others, as well?
    See
    FAQ #6

  • Bounding Box  and Affineransform

    I'm working on a tank game. right now, i just have an applet and a little tank that drives around. unfortunately, i can't figure out how to get a bounding box to encapsulate with my image. can anyone help me? my prog is two classes: TankGame and Tank. Tank extends Rectangle and draws itself and an image of a tank. as the image is rotated, the rectangle(bounding box) is offset between 0 and image size, along both the x and y axis.
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    public class TankGame extends Applet implements ImageObserver, KeyListener, Runnable{
         int gameSpeed=50;
         int tankSpeed=4;
         Graphics2D dbg;
         Image dbImage, tankPic;
         int imageHeight=32, imageWidth=32;
         Thread th;
         Tank theTank;
         AffineTransform transform;
         boolean forward=false,reverse=false,right=false,left=false;
         Point location;
         double rotation=Math.PI/20,angle=Math.PI;
         public void init ()     {
              setBackground(Color.black);
              setSize(600,600);
              tankPic=getImage(getCodeBase(),"tank.jpg");
              theTank = new Tank(tankPic, this);
              addKeyListener(this);
              transform = new AffineTransform();
              location = new Point(150,150);
              transform.translate(location.x,location.y);
              transform.rotate(angle);
         public void start (){
              th = new Thread (this);
              th.start ();
         public void run ()     {
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while (true){
                   move();
                   repaint();
                   try     {
                        th.sleep (gameSpeed);
                   }catch (InterruptedException ex){
         public void paint (Graphics2D g)     {
              g.setColor(Color.red);
              theTank.draw(transform, g);
         public void update (Graphics g)     {
              if (dbImage == null){
                   dbImage = createImage (this.getSize().width, this.getSize().height);
                   dbg = (Graphics2D)dbImage.getGraphics();
              dbg.setColor (getBackground ());
              dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
              dbg.setColor (getForeground());
              paint (dbg);
              g.drawImage (dbImage, 0, 0, this);
         public void keyPressed(KeyEvent e) {
              if (e.getKeyCode()==38){forward=true;}
              if (e.getKeyCode()==40){reverse=true;}
              if (e.getKeyCode()==37){left=true;}
              if (e.getKeyCode()==39){right=true;}
         public void keyReleased(KeyEvent e) {
              if (e.getKeyCode()==38){forward=false;}
               if (e.getKeyCode()==40){reverse=false;}
              if (e.getKeyCode()==37){left=false;}
              if (e.getKeyCode()==39){right=false;}
         public void keyTyped(KeyEvent e)  {}
         public void move(){
              if(forward){transform.translate(0,-tankSpeed);}
              if(reverse){transform.translate(0,tankSpeed);}
              if(left){
                   angle=angle-rotation;
                   transform.rotate(-rotation,imageWidth/2,imageHeight/2);
              if(right){
                   angle=angle+rotation;
                   transform.rotate(rotation,imageWidth/2,imageHeight/2);
              location.y=(int)(transform.getTranslateY());
              location.x=(int)(transform.getTranslateX());
              theTank.moveTo(location);
    /*class tank which draws itself and an image (though not always in the same place)*/
    class Tank extends Rectangle {
         Image image;
         Tank(Image img, ImageObserver obs){
              image=img;
         public void moveTo(Point p){
              setRect((double)p.x,(double)p.y,32,32);
         public void draw(AffineTransform transform,Graphics2D g){
              g.drawImage(image,transform,null);
              g.setColor(Color.blue);
              g.draw(this);
              g.setColor(Color.red);
    }i've messed with this for a couple of hours, this morning to no avail.

    Try this:
    change the tank class to     93 class Tank extends Rectangle {
         94     Image image;
         95
         96     Tank(Image img, ImageObserver obs){
         97         image=img;
         98         setRect(0,0,32,32);
         99     }
        100 /*  public void moveTo(Point p){
        101         setRect((double)p.x,(double)p.y,32,32);
        102     }*/
        103     public void draw(AffineTransform transform,Graphics2D g){
        104         g.drawImage(image,transform,null);
        105         g.setColor(Color.blue);
        106         g.draw(transform.createTransformedShape(this));
        107         g.setColor(Color.red);
        108
        109     }
        110 }and comment out the line that calls the moveTo-method.
    Does it do what you want it do now?

  • How do you not align with the biggest bounding box?

    This is driving me up the wall, I know a way around it, but at some point later in this project the work around won't be efficient enough.
    Ok here is the problem, I have four objects that are going to be large oversized buttons on a website. Inside these buttons (which are square) I have placed a picture, as the picture is larger than the button area I have duplicated the button box and made it a clipping mask for the picture. I have aligned it all up and grouped everything for one button together as one big group. I have done this for each button, so now all buttons are made up of a group of objects.
    The problem is because these images are too big for the buttons and I have clipped them there bounding box is bigger than the buttons so when I come to align them or distribute them it all goes wrong. Why? Well the distribution/alignment goes on the combined area bounding box, in this case the pictures are much bigger so it's pretty much there bounding boxes that everything is getting aligned with. In InDesign it treats the bounding boxes of objects within a clipping mask as being the size of the clipping mask, which is exactly what I want to do here. This seems a massive limitation and I can't see why I would ever want to distribute or align with something that I am effectivly removing from the document.
    The work around is quite simple, I can take everything out of the button boxes, align the button boxes and then put everything back in the button boxes. This would be acceptable if I only had to do it once, but if (and I probably will) want to tweak the layout as I go it's going to be a pain in the rear.
    Any ideas?

    I could pre-crop the images in PS but then I loose the ease of changing them in Illustrator. I always try and do as much work as possible in Illustrator so I am able to undo or change things quickly, I am not a big fan of the finality of working with raster images.
    The real issue is that the client is comming to look at some mockups and if they ask for changes, which we usually do there and then, we will look a bit silly as we complete destruct and then re-construct each object.
    If those align scripts work how I am thinking I might make 4 place holder graphics (that I switch off when I am finished) and centre align each button to those with the scripts.
    Illustrator should just be have an option to align the visable layers or items only. I would even accept the ability that when you switch off a layer in a group (say these pictures where there bounding box goes beyond that of the clipping mask) so your only active layer is a box the same size as your clipping mask and so that is the only bounding box that gets used, but no the off layers still have active bounding boxes.
    Regards
    Paul

  • I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    What do you mean a moderator

Maybe you are looking for

  • FI-SD AND FI-MM QUERIES.. PLEASE HELP

    Hi Gurus, Please help me with the following queries- 1. How movement type and valuation class helps in determining G/L A/C? 2. Where do I configure GL A/C as per movement type and valuation class? 3. Where I can see G/L postings of individual materia

  • Splitting iTunes Library Based On Content

    Hello, Is there any tool or any method to split where iTunes stores certain types of files. I would like to have iTunes store all music on my iDisk but keep all video content on my local hard drive. Preferably, even if I buy music I would like it to

  • Creating something similiar to this

    Hi! I want to create a picture like this: http://www.google.no/imgres?imgurl=http://farm4.static.flickr.com/3409/3256194469_8549469b 11.jpg&imgrefurl=http://www.flickr.com/explore/interesting/2009/02/05/&usg=__AuM7l5MoQG9hu FF0K3WOCwBsXpM=&h=334&w=50

  • Static context error, nothing declared static, new instance isn't working

    I'm trying to get the IP address of a user using my applet. Nothing in my code is declared static. InetAddress IP = InetAddress.getAddress();I get non-static method getAddress cannot be referenced from a static context. I just read on another post wi

  • How poor is this practice?

    We have applications at work that spend most of the day rolling back insert statements because of attempts to insert dupe data into a unique indexed table. How poor is this practice to eliminate duplicates? It seems to be a common practice by those u