Error 1013: The private attribute may be used only on class property definitions

Been trying to solve this problem for the past 4 hours, been searching all over different forums and I still don't get it, I'm a complete newbie with AS3 and just starting to learn it. Can someone tell me what I have done wrong to get this error.
package {
          import flash.display.Sprite;
          import flash.events.Event;
          public class Main extends Sprite {
                    private const FIELD_WIDTH:uint=16;
                    private const FIELD_HEIGHT:uint=12;
                    private const TILE_SIZE:uint=40;
                    private var the_snake:the_snake_mc;
                    private var snakeDirection:uint;
                    private var snakeContainer:Sprite= new Sprite();
                    private var bg:bg_mc=new bg_mc();
                    public function Main() {
                              addChild(bg);
                              placeSnake(); }
                              addEventListener(Event.ENTER_FRAME,onEnterFr);
private function placeSnake():void {
          addChild(snakeContainer);
          var col:uint=Math.floor(Math.random()*(FIELD_WIDTH-10))+5;
          var row:uint=Math.floor(Math.random()*(FIELD_HEIGHT-10))+5;
          snakeDirection=Math.floor(Math.random()*4);
          the_snake=new the_snake_mc(col*TILE_SIZE,row*TILE_SIZE,snakeDirection+1);
          snakeContainer.addChild(the_snake);
          switch (snakeDirection) {
                    case 0 : // facing left
                    trace("left");
                    the_snake = new the_snake_mc((col+1)*TILE_SIZE,row*TILE_SIZE,6);
                    snakeContainer.addChild(the_snake);
                    the_snake = new the_snake_mc((col+2)*TILE_SIZE,row*TILE_SIZE,6);
                    snakeContainer.addChild(the_snake);
                    break;
                    case 1 : // facing up
                    trace ("up");
                    the_snake = new the_snake_mc(col*TILE_SIZE,(row+1)*TILE_SIZE,5);
                    snakeContainer.addChild(the_snake);
                    the_snake = new the_snake_mc(col*TILE_SIZE,(row+2)*TILE_SIZE,5);
                    snakeContainer.addChild(the_snake);
                    break;
                    case 2 : // facing down
                    trace ("down");
                    the_snake = new the_snake_mc((col-1)*TILE_SIZE.row*TILE_SIZE,6);
                    snakeContainer.addChild(the_snake);
                    the_snake = new the_snake_mc((col-2)*TILE_SIZE.row*TILE_SIZE,6);
                    snakeContainer.addChild(the_snake);
                    break
                    case 3 : // facing right
                    trace ("right");
                    the_snake = new the_snake_mc(col*TILE_SIZE,(row-1)*TILE_SIZE,5);
                    snakeContainer.addChild(the_snake);
                    the_snake = new the_snake_mc(col*TILE_SIZE,(row-2)*TILE_SIZE,5);
                    snakeContainer.addChild(the_snake);
                    break;
private function onEnterFr(e:Event) {     <<   ERROR ON THIS LINE
          var the_head:the_snake_mc=snakeContainer.addChildAt(0) as the_snake_mc;
          var new_piece:the_snake_mc=new the_snake_mc(the_head.x,the_head.y,1);
          snakeContainer.addChildAt(new_piece,1);
          var the_body:the_snake_mc=snakeContainer.getChildAt(2) as the_snake_mc;
          var p:uint=snakeContainer.numChildren;
          var the_tail:the_snake_mc=snakeContainer.getChildAt(p-1) as the_snake_mc;
          var the_new_tail:the_snake_mc=snakeContainer.getChildAt(p-2) as the_snake_mc;
          the_head.moveHead(snakeDirection,TILE_SIZE);
          // brute force
          if (is_up(new_piece,the_head)&&is_down(new_piece,the_body)) {
                    new_piece.gotoAndStop(5);
          if (is_down(new_piece,the_head)&&is_up(new_piece,the_body)) {
                    new_piece.gotoAndStop(5);
          if (is_left(new_piece,the_head)&&is_right(new_piece,the_body)) {
                    new_piece.gotoAndStop(6);
          if (is_right(new_piece,the_head)&&is_left(new_piece,the_body)) {
                    new_piece.gotoAndStop(6);
          // end of brute force
          snakeContainer.removeChild(the_tail);

does this solve your problem
package
          import flash.display.Sprite;
          import flash.events.Event;
          public class Main extends Sprite
                    private const FIELD_WIDTH:uint = 16;
                    private const FIELD_HEIGHT:uint = 12;
                    private const TILE_SIZE:uint = 40;
                    private var the_snake:the_snake_mc;
                    private var snakeDirection:uint;
                    private var snakeContainer:Sprite = new Sprite();
                    private var bg:bg_mc = new bg_mc();
                    public function Main()
                              addChild(bg);
                              placeSnake();
                              addEventListener(Event.ENTER_FRAME, onEnterFr);
                    private function placeSnake():void
                              addChild(snakeContainer);
                              var col:uint = Math.floor(Math.random() * (FIELD_WIDTH - 10)) + 5;
                              var row:uint = Math.floor(Math.random() * (FIELD_HEIGHT - 10)) + 5;
                              snakeDirection = Math.floor(Math.random() * 4);
                              the_snake = new the_snake_mc(col * TILE_SIZE, row * TILE_SIZE, snakeDirection + 1);
                              snakeContainer.addChild(the_snake);
                              switch (snakeDirection)
                                        case 0: // facing left
                                                  trace("left");
                                                  the_snake = new the_snake_mc((col + 1) * TILE_SIZE, row * TILE_SIZE, 6);
                                                  snakeContainer.addChild(the_snake);
                                                  the_snake = new the_snake_mc((col + 2) * TILE_SIZE, row * TILE_SIZE, 6);
                                                  snakeContainer.addChild(the_snake);
                                                  break;
                                        case 1: // facing up
                                                  trace("up");
                                                  the_snake = new the_snake_mc(col * TILE_SIZE, (row + 1) * TILE_SIZE, 5);
                                                  snakeContainer.addChild(the_snake);
                                                  the_snake = new the_snake_mc(col * TILE_SIZE, (row + 2) * TILE_SIZE, 5);
                                                  snakeContainer.addChild(the_snake);
                                                  break;
                                        case 2: // facing down
                                                  trace("down");
                                                  the_snake = new the_snake_mc((col - 1) * TILE_SIZE.row * TILE_SIZE, 6);
                                                  snakeContainer.addChild(the_snake);
                                                  the_snake = new the_snake_mc((col - 2) * TILE_SIZE.row * TILE_SIZE, 6);
                                                  snakeContainer.addChild(the_snake);
                                                  break;
                                        case 3: // facing right
                                                  trace("right");
                                                  the_snake = new the_snake_mc(col * TILE_SIZE, (row - 1) * TILE_SIZE, 5);
                                                  snakeContainer.addChild(the_snake);
                                                  the_snake = new the_snake_mc(col * TILE_SIZE, (row - 2) * TILE_SIZE, 5);
                                                  snakeContainer.addChild(the_snake);
                                                  break;
                    private function onEnterFr(e:Event)
                              var the_head:the_snake_mc = snakeContainer.addChildAt(0) as the_snake_mc;
                              var new_piece:the_snake_mc = new the_snake_mc(the_head.x, the_head.y, 1);
                              snakeContainer.addChildAt(new_piece, 1);
                              var the_body:the_snake_mc = snakeContainer.getChildAt(2) as the_snake_mc;
                              var p:uint = snakeContainer.numChildren;
                              var the_tail:the_snake_mc = snakeContainer.getChildAt(p - 1) as the_snake_mc;
                              var the_new_tail:the_snake_mc = snakeContainer.getChildAt(p - 2) as the_snake_mc;
                              the_head.moveHead(snakeDirection, TILE_SIZE);
                              // brute force
                              if (is_up(new_piece, the_head) && is_down(new_piece, the_body))
                                        new_piece.gotoAndStop(5);
                              if (is_down(new_piece, the_head) && is_up(new_piece, the_body))
                                        new_piece.gotoAndStop(5);
                              if (is_left(new_piece, the_head) && is_right(new_piece, the_body))
                                        new_piece.gotoAndStop(6);
                              if (is_right(new_piece, the_head) && is_left(new_piece, the_body))
                                        new_piece.gotoAndStop(6);
                              // end of brute force
                              snakeContainer.removeChild(the_tail);

Similar Messages

  • 1013: The private attribute may be used only on class property definitions.

    import com.doitflash.consts.Orientation;
    import com.doitflash.consts.Easing;
    import com.doitflash.events.ScrollEvent;
    import com.doitflash.starling.utils.scroller.Scroller;
    import starling.events.TouchEvent;
    import starling.events.TouchPhase;
    import starling.events.Touch;
    import starling.extensions.ClippedSprite;
    import flash.geom.Point;
    var content:ClippedSprite = new ClippedSprite(); // the content you want to scroll
    content.clipRect = new Rectangle(0, 0, 500, 500); // set the space that you want your content to be visible at, set its mask actually
    content.addEventListener(TouchEvent.TOUCH, onTouch);
    this.addChild(content);
    var scroll:Scroller = new Scroller();
    scroll.boundWidth = 500; // set boundWidth according to the mask width
    scroll.boundHeight = 500; // set boundHeight according to the mask height
    scroll.content = content; // you MUST set scroller content before doing anything else
    scroll.orientation = Orientation.VERTICAL; // accepted values: Orientation.AUTO, Orientation.VERTICAL, Orientation.HORIZONTAL
    // you call this function, to start scrolling
    private function onTouch(e:TouchEvent):void
        var touch:Touch = e.getTouch(stage);
        var pos:Point = touch.getLocation(stage);
        if (touch.phase == TouchPhase.BEGAN)
            scroll.startScroll(pos); // on touch begin
        else if (touch.phase == TouchPhase.MOVED)
            scroll.startScroll(pos); // on touch move
            //trace(_scroll.isHoldAreaDone); // to see that we have got out of the hold area or not
        else if (touch.phase == TouchPhase.ENDED)
            scroll.fling(); // on touch ended
    i got this error after pasting this code in.. i cant figure out the problem.. some help pls?

    use:
    import com.doitflash.consts.Orientation;
    import com.doitflash.consts.Easing;
    import com.doitflash.events.ScrollEvent;
    import com.doitflash.starling.utils.scroller.Scroller;
    import starling.events.TouchEvent;
    import starling.events.TouchPhase;
    import starling.events.Touch;
    import starling.extensions.ClippedSprite;
    import flash.geom.Point;
    var content:ClippedSprite = new ClippedSprite(); // the content you want to scroll
    content.clipRect = new Rectangle(0, 0, 500, 500); // set the space that you want your content to be visible at, set its mask actually
    content.addEventListener(TouchEvent.TOUCH, onTouch);
    this.addChild(content);
    var scroll:Scroller = new Scroller();
    scroll.boundWidth = 500; // set boundWidth according to the mask width
    scroll.boundHeight = 500; // set boundHeight according to the mask height
    scroll.content = content; // you MUST set scroller content before doing anything else
    scroll.orientation = Orientation.VERTICAL; // accepted values: Orientation.AUTO, Orientation.VERTICAL, Orientation.HORIZONTAL
    // you call this function, to start scrolling
    function onTouch(e:TouchEvent):void
        var touch:Touch = e.getTouch(stage);
        var pos:Point = touch.getLocation(stage);
        if (touch.phase == TouchPhase.BEGAN)
            scroll.startScroll(pos); // on touch begin
        else if (touch.phase == TouchPhase.MOVED)
            scroll.startScroll(pos); // on touch move
            //trace(_scroll.isHoldAreaDone); // to see that we have got out of the hold area or not
        else if (touch.phase == TouchPhase.ENDED)
            scroll.fling(); // on touch ended

  • Code 1013: The private attribute may be used only on class property definitions.

    Ok guys, being new to the Action scripting game, I am already finding myself with Errors.  I have researched this for the last few days, and each time I come up with an answered solution, the solution is always the curly bracket.  But for the life of me, I can not find a missing bracket!  Could someone look at this for me and guide me in the right direction before I lose the rest of my hair. :-)
    package
      import flash.display.Sprite;
      import flash.events.MouseEvent;
      public class Main extends Sprite
      var xPos:int; //Stores the initial x position
      var yPos:int; //Stores the initial y position
    public function Main():void
      addListeners(alpine,armadillo,battery,blizzard,cactus,carnivoreplant,cloud,coolfire,coral,crystal,dandelion,darkfire); //A function to add the listeners to the clips in the parameters
    private function getPosition(target:Object):void
      xPos = target.x;
      yPos = target.y;
    private function dragObject(e:MouseEvent):void
      getPosition(e.target);
      e.target.startDrag(true);
    private function stopDragObject(e:MouseEvent):void
      if (e.target.hitTestObject(getChildByName(e.target.name + "Target"))) //Checks the correct drop target
      e.target.x = getChildByName(e.target.name + "Target").x; //If its correct, place the clip in the same position as the target
      e.target.y = getChildByName(e.target.name + "Target").y;
      else
      e.target.x = xPos; //If not, return the clip to its original position
      e.target.y = yPos;
      e.target.stopDrag(); //Stop drag
    private function addListeners(... objects):void
      for (var i:int = 0; i < objects.length; i++)
      objects[i].addEventListener(MouseEvent.MOUSE_DOWN, dragObject);
      objects[i].addEventListener(MouseEvent.MOUSE_UP, stopDragObject);

    Thank you for the reply Ned.
    I took your advice and moved the Closing Bracket with this result in the coding change.
    package
              import flash.display.Sprite;
              import flash.events.MouseEvent;
              public class Main extends Sprite
                        var xPos:int; //Stores the initial x position
                        var yPos:int; //Stores the initial y position
    public function Main():void
                        addListeners(alpine,armadillo,battery,blizzard,cactus,carnivoreplant,cloud,coolfire,coral,crystal,dandelion,darkfire); //A function to add the listeners to the clips in the parameters
    private function getPosition(target:Object):void
                        xPos = target.x;
                        yPos = target.y;
    private function dragObject(e:MouseEvent):void
                        getPosition(e.target);
                        e.target.startDrag(true);
    private function stopDragObject(e:MouseEvent):void
                        if (e.target.hitTestObject(getChildByName(e.target.name + "Target"))) //Checks the correct drop target
                                            e.target.x = getChildByName(e.target.name + "Target").x; //If its correct, place the clip in the same position as the target
                                            e.target.y = getChildByName(e.target.name + "Target").y;
                        else
                                            e.target.x = xPos; //If not, return the clip to its original position
                                            e.target.y = yPos;
                        e.target.stopDrag(); //Stop drag
    private function addListeners(... objects):void
              for (var i:int = 0; i < objects.length; i++)
                                  objects[i].addEventListener(MouseEvent.MOUSE_DOWN, dragObject);
                                  objects[i].addEventListener(MouseEvent.MOUSE_UP, stopDragObject);
    The 4 errors still remain on Line 14, 19, 25, and 40.  All the same Error Code.

  • Private attributes & class property definition errors

    I'm setting up functions in a document class file, then from there I am going to call that function from a movieclip in flash.  For some reason, maybe I have things set up wrong, but it is throwing me errors such as below:
    Line 37 1013: The private attribute may be used only on class property definitions.
    What am I doing wrong here and is there something I am not understanding?
    Here is my .as code.
    modal.as >
    package {
         import flash.display.*;
         import flash.events.Event;
         import flash.events.MouseEvent;
         import flash.display.*;
         import flash.events.*;
         import flash.net.URLRequest;
         public class modal extends MovieClip {
              public function modal() {
         private var currentlyShowing:MovieClip=null;
              public function showModalContent(clip:MovieClip):void {
                   if (currentlyShowing!=null) {
                        removeChild(currentlyShowing);
                   currentlyShowing=clip;
                   addChild(currentlyShowing);
              public function removeModalContent():void {
                   if (currentlyShowing!=null) {
                        removeChild(currentlyShowing);
                        currentlyShowing=null;
    And here is my code that is on the timeline:
    slideshowimages_mc.one_mc.addEventListener(MouseEvent.CLICK, oneClick);
    function oneClick(event:MouseEvent):void {
         var bigimagebg_mc=new mc_bigimagebg  ;
         showModalContent(bigimagebg_mc);
         bigimagebg_mc.x=200;
         bigimagebg_mc.y=170;

    unnest all the named functions and that variable:
    package {
        import flash.display.*;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.display.*;
        import flash.events.*;
        import flash.net.URLRequest;
        public class modal extends MovieClip {
            private var currentlyShowing:MovieClip=null;
            public function modal() {
            public function showModalContent(clip:MovieClip):void {
                if (currentlyShowing!=null) {
                    removeChild(currentlyShowing);
                currentlyShowing=clip;
                addChild(currentlyShowing);
            public function removeModalContent():void {
                if (currentlyShowing!=null) {
                    removeChild(currentlyShowing);
                    currentlyShowing=null;

  • The operating system returned error 170(The requested resource is in use)

    Hello Experts,
    We have a Sharepoint farm where we are receiving OS Error 170 for many days. It results in database shutdown/Start because required transaction file is not available.
    The operating system returned error 170(The requested resource is in use.) to SQL Server during a write at offset 0x0000029495e000 in file 'F:\MSSQL10_50.INST1\MSSQL\DATA\****.***. Additional messages in the SQL
    Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately
    Write error during log flush.
    Error: 9001, Severity: 21, State: 4.
    The log for database 'DBNAME' is not available
    We have checked the Anti Virus but all data files are excluded. We have also disabled the anti virus for some time but still issue persist.
    This is a Virtual Machine and no VM snapshot backup is running during the time window.
    Please help!
    Thanks in advance.
    Regards,
    Divesh Mathur

    Hello Experts,
    We have a Sharepoint farm where we are receiving OS Error 170 for many days. It results in database shutdown/Start because required transaction file is not available.
    The operating system returned error 170(The requested resource is in use.) to SQL Server during a write at offset 0x0000029495e000 in file 'F:\MSSQL10_50.INST1\MSSQL\DATA\****.***. Additional messages in the SQL
    Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately
    Write error during log flush.
    Error: 9001, Severity: 21, State: 4.
    The log for database 'DBNAME' is not available
    Hello,
    I sense a disk issue here( I am not sure).Log for database is not available seems when data needs to be written on log file it was not avaialble.Can you check with storage team that disk on which SQL server files reside is OK
    Secondly did you run DBCC CHECKDB for your database in picture can you paste result of it.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Error message: "The media can't be used because you don't have access privileges, or because it has no content or is corrupt."

    I get the error message "The media can’t be used because you don’t have access privileges, or because it has no content or is corrupt." when I drag photos (or copy and paste photos) from iPhoto to Pages/Word.
    It never used to do this and is really quite annoying, as I now have to find the file through finder to drag from there.
    I had to rebuild the iPhoto library a few days ago, is it something to do with this?
    Thanks in advance.

    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, 
    navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • "There has been a network or file permission error. The network connection may have been lost

    Hi,
    While trying to save an Excel or (less frequently) Word document, employees at my company have been seeing the error, "There has been a network or
    file permission error. The network connection may have been lost."  This is more common when they are connected through the VPN, but it also occurs locally.
    The employees all have Win 7 Pro laptops and the file server is Win Server 2008 R2.  I have found suggestions that a Windows update is the cause, but the articles on that all limit it to Server 2003.  Others have suggested setting the program to
    save a local copy of remote files; however, while the setting exists in Word, it does not exist in Excel.
    If anybody has any advice, it would be greatly appreciated.
    Thank you

    This is a known issue, might try the workaround is a better chooses .
    http://support.microsoft.com/kb/291156
    KR

  • SQL*Loader-273: READBUFFERS may be used only in direct path.

    Hi,
    I am trying to upgrade from OWB 10G to 11G. y map from flat file to stage maps work fine in 10G. when i upgrade the maps to 11G i get the error:
    Error
    RPE-01013: SQL Loader reported error condition, number 1.
    SQL*Loader: Release 11.1.0.7.0 - Production on Fri May 8 15:10:20 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-273: READBUFFERS may be used only in direct path.
    SQL*Loader: Release 11.1.0.7.0 - Production on Fri May 8 15:10:20 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-273: READBUFFERS may be used only in direct path.
    if i go to configure and make the READBUFFERS to = 0 then the map works fine. this used to work fine in 10G. I compared the .CTL file of sql loder and i notice the 10G sql loader file did not care for this property being set. while in 11G .ctl file i see the readbuffer property being set. though i can make the map run in 11G i can not go to each map and then reset it. ...Please help.
    Thanks

    IN 10 G environment
    a.)Direct path = False.
    b.) Read buffers = 4 (defaults to 4)
    10G Code generated :
    -- Oracle Warehouse Builder
    -- Generator Version : 10.1.0.4.0
    -- Created Date : Mon May 11 10:16:31 CDT 2009
    -- Modified Date : Mon May 11 10:16:31 CDT 2009
    -- Created By : owb_repository
    -- Modified By : owb_repository
    -- Generated Object Type : SQL*Loader Control File
    -- Generated Object Name : GFHGF
    -- © 2003 Oracle Corporation. All Rights Reserved.
    OPTIONS ( ERRORS=50, BINDSIZE=50000, ROWS=200, READSIZE=65536)
    LOAD DATA
    CHARACTERSET WE8MSWIN1252
    INFILE 'C:\EAND.dat'
    INTO TABLE "{{ORACLE10G.Schema}}"."EAND"
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    FIELDS
    "PERSON_SSN_SOURCE" POSITION (3:3) CHAR
    IN 11 G environment
    a.)Direct path = False.
    b.) Read buffers = 4 (for new maps crated defaults to 0)
    -- Generator Version : 11.1.0.7.0
    -- Created Date : Mon May 11 10:06:37 CDT 2009
    -- Modified Date : Mon May 11 10:06:37 CDT 2009
    -- Created By : OWB_WUSER
    -- Modified By : OWB_WUSER
    -- Generated Object Type : SQL*Loader Control File
    -- Generated Object Name : "GFHGF"
    -- Copyright © 2000, 2007, Oracle. All rights reserved.
    OPTIONS (BINDSIZE=50000,ERRORS=50,ROWS=200,READSIZE=65536)
    LOAD DATA
    CHARACTERSET WE8MSWIN1252
    INFILE '{{ETL_FILE_LOC.RootPath}}{{}}EAND.dat''
    BADFILE '{{ETL_FILE_LOC.RootPath}}{{}}EAND'
    READBUFFERS 4
    CONCATENATE 1
    INTO TABLE "STAG"."EAND"
    TRUNCATE
    REENABLE DISABLED_CONSTRAINTS
    "PERSON_SSN_SOURCE" POSITION (3:3) CHAR
    my question is even as both the properties in 10G and 11G are same why does .ctl file generated in 11G has statement "READBUFFERS 4" while this is neglected in owb 10G generated .ctl file? Please Help.
    Edited by: user591315 on May 11, 2009 8:14 AM
    Edited by: user591315 on May 11, 2009 8:16 AM

  • The services yes president St use only passed

     I'm police officers and how to get the services yes president St use only passed I 1020 everybody in the county possible health service in the county government yeah there's more demand people is a alright so you need to cut the people themselves demanding  Pure Testo Xplode besides their services will be provided then we also need to make hell me as major topic of discussion that we he has said should be delighted leading the HIV epidemic needed message and that his hand shows that a lot most now the earliest to understand that head message I think that lets you it is United States access shiny bentest yes that given is things that yet about did dissection today grass how yet and I know many mothers day actually was that helped a lot yes I will be doing then this is not what I love that song will me yeah so attendees hey don’t know let I'm is not schooled at this to know that listed into I listening to these lames is lead this leading because then his mother son the fact that units I S journalist .http://useexercisesupplements.com/pure-testo-xplode/

    -Considering that these switches went eol in ’10 & end of SW maint release as of 7/31/13,  can I consider the rev level that is prescribed in this post to be the final, definitive answer regarding the best & most current rev level for these 3750-48PS-e switches ? Or is there the possibilty that SE10 (or some other newer version)  comes along & merits a rethink?
    This is incorrect (and made worst with the poorly-worded EoL/EoS from Cisco).  12.2(55)SE EoL/EoS only affects platforms (2960, 3560 and 3750) with flash memory of 32 mb and above.  Legacy 3560 and 3750 are NOT affected by announcement.   And even if you have a 3560 or 3750 with 32 mb flash, I would steadfastly recommend 12.2(55)SE train than 15.0(1)SE, 15.0(2)SE or 15.2(1)E.
    If your  platform has 16 mb flash, then the "highest" IOS you can run is 12.2(55)SE.  My personal recommendation is 12.2(55)SE8 or you could try the newer 12.2(55)SE9.  I've got years of good experience with this particular version of IOS, 12.2(55)SE, and must admit this is one of the most stable version I've ever used (and I've used and tested a lot of versions).  It's sad that Cisco no longer wants to run with this code.  

  • Error in the LSMW for vendor master using standard batch/direct input

    I am facing the problem in the LSMW for the Vendor master data. The vendor is initially created for the company code 350 by using LSMW. NOw when I try to uploasd the same vendor using the same LSMW for the company code 450 then I get the error in the Bach input creation as follows:
    Batch Input Interface for Vendors
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name VNDR_CREATE_ was opened
    FB104                    Trans. 2 XK01 : Acct already exists; general area not being processed
    FB125                    ... Data in table BLFA1 cannot be processed
    FB016                    ... Last header record ...
    FB014                    ... BLF00-STYPE 1
    FB014                    ... BLF00-TCODE XK01
    FB014                    ... BLF00-LIFNR 300951
    FB014                    ... BLF00-BUKRS 402
    FB014                    ... BLF00-EKORG /
    FB014                    ... BLF00-KTOKK VEND
    FB017                    ... Last data record ...
    FB014                    ... BLFA1-STYPE 2
    FB014                    ... BLFA1-TBNAM BLFA1
    FB014                    ... BLFA1-ANRED /
    FB014                    ... BLFA1-NAME1 SAVOIE AUTOMATISME DEXIS
    This is because when we use XK01 to create the vendor by using the

    Please check this answered link:
    Re: LSMW for Vendor Master
    LSMW Upload vendor master data
    Edited by: Afshad Irani on May 5, 2010 12:42 PM

  • Is it possible to install a module only for the private mode (i would use https everywhere only in this mode). Is there any way to do that ? Thanks

    I would use the module "https everywhere" wich is an extension that encrypts communications with many major website. The thing is that i dont want to use it all the time.
    The way to use it perfectly would be to activate it only when i'm in private mode (wich makes sense IMO).
    Is there any way to install / configure it in order it's effective in the private mode but not in the normal one ?
    That would be a great feature but i found nothing about it.
    Btw, sorry for my bad english, not my mother tongue anyway ;).
    Thanks for your support.
    Best regards

    I know i m running on firefox 24, but i m working with GWT plateform and there is no pluggin for version higher than 24.
    Thank you for your help, it fit perfectly with my issue. Much appreciated.
    Best regards

  • Error message 'The Condition evaluates to false' using Form Personalisation

    Hi,
    In Oracle HRMS
    Under Assignment screen 2 fields are there 'Grade' and 'Payroll'
    w.r.t Grade field Payroll field should display
    i.e. If we enter grade field '1' by default Payroll field should display value' MANAGEMENT PAYROLL'
    NAVIGATION: India HRMS Manage--->People Enter and Maintain--> Click on Assignment button
    I done the process using form personalisation:
    Under  CONDITION TAB*****
    Trigger Event: WHEN-NEW-ITEM-INSTANCE
    Trigger Object: ASSGT.PAYROLL_NAME
    Condition-- :ASSGT.GRADE_NAME IN (1,2,3,4,5,6,7,8,9,10,11,'MT','4A')
    Processing Mode: both
    Under  ACTIONS TAB***
    Seq--10
    Type--Property
    Object Type: Item
    Target Object: ASSGT.PAYROLL_NAME
    Property Name : VALUE
    VALE: MANAGEMENT PAYROLL
    After that i press APPLY NOW button
    and also Validate button on condition tab
    But i display error message 'The Condition Evaluates to false'
    After that i save all setups then logout & log in the instance
    and UNDER Oracle HRMS Responsibility open the assignment screen when i enter in grade field 1,2,3,4,5,6,7,8,9,10 w.r.t that values Payroll field dispaling MANAGEMENT PAYROLL correctly
    But when i enter '4A' or MT on grade field and enter tab it
    showing error :The condition :ASSGT.GRADE_NAME IN(1,2,3,4,5,6,7,8,9,10,'4A','MT') could not be evaluated because of error ORA-01722 INVALID NUMBER .
    I tried for differen combination in condition field
    i.e.
    :ASSGT.GRADE_NAME IN('1','2','3','4','5','6','7','8','9','10','4A','MT')
    ${item.ASSGT.GRADE_NAME.value IN (1,2,3,4,5,6,7,8,9,10,'4A','MT')
    BUT SAME ERROR DISPLAYING
    Could you pls provide me the solution ASAP
    Thanks,
    AKULA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Felipe,
    I understand that using the "Instantiation" tab in GP DesignTime, the process opens in a new window. Can you confirm whether your process opens in a new window even by using GP RunTime?
    While making a callable object from a Web Dynpro application, you might get this error when your process opens in a new window (A window which somehow no longer exists in the Portal environment. You can check this as you would not be able to see the Portal masthead and roles etc. at the top)
    For more information, see this SAP Note:
    [Error when executing a GP task - Page builder|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393831353137%7d]
    Bye
    Ankur

  • After Effects Error at the end of export -1610153464 using TSCC TechSmith Screen Capture Codec

    Hi there, im very new in the adobe forum - I tried to look after the problem but there isn't anything like that.
    In my work I have my own workflow with after effects and premiere using TSCC from the beginning to the final product. I used to work with CS3 and everything was perfect but after switching to CS5.5 I got some Problems.
    Premiere is still awesome but After Effects won't render any AVI's with TSCC. any help?
    Greetings - Benjamin

    The TSCC is not the only Codec wich AE have problems to render.
    There's a lot of problems with that error message -1610153464 and none solution from Adobe...
    An answer please CS5 and 5.5 have the same problem.
    JMF

  • Certificate error on the second exchange that is used as a proxy for internet facing

    Hello friends ,
    I have one just like it ( http://faragesolutions.files.wordpress.com/2013/04/proxy.jpg?w=650 ) scenario . Using two Exchange , only one of them is accessed as a proxy .
    In Exchange that is facing internet , I use a digital certificate with the public domain ( webmail.name.com ) and my OWA is configured to ( External: webmail.name.com ) and Internal : webmail.name.com ) .
    You Exchange that are not face to internet , OWA is configured to ( External: empty) and ( Internal : servername.local ) . This Exchange user when connecting with Outlook client is generating validation error name ( servername.local ) , because as I'm using
    the same Exchange certificate that is facing internet . So the audience is trying to validate the certificate name that is not registered as an alternative name.
    question : the exchange that is not facing the internet, I need to use the same public certificate that is in exchange that is facing the internet? or can I just use an internal certificate?
    Thank you.

    The names that go on the certificate must match the names you planned when you did the CAS namespace design.
    Some details here:http://blogs.technet.com/b/exchange/archive/2014/02/28/namespace-planning-in-exchange-2013.aspx
    So in your case if the cert does not match the name, then this will prompt users with errors.   They need to match.  As long as all your internal devices trust the issuer of the internal CA then you can use that.   Installing an
    enterprise CA will automatically publish it's root CA  public cert into AD so it works easily.
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Bouncing off the wall: Problems with passing/using pointers to classes

    I have a mostly completed "msPaint" (=assigment) program that is driving me nuts!!!
    1. First shape you draw doesn't appear.
    1.5 Draw a shape by clicking twice on Panel, can change shape, color, fill with what buttons you see.
    2. Subsequently only the newest shape appears. Using System.println(); it appears to be drawing as many shapes as it has made, but it doesn't.
    3. I owe much to anyone who helps me, here is complete code. Specifically will ask/reward you to reply to a diff link in which I have dukes, got no answer, and can't reallocate dukes. (=5)
    Thank you very much.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Prog4 extends JApplet implements ActionListener
         //private MainPanel drawingpanel;
         private JPanel top;
         private JPanel left;
         private JPanel bottom;
         private JPanel bottomleft,bottommiddletop,bottommiddle,bottomright;
         //top buttons created
         private JButton first,next,previous,last,help;
         //bottom buttons created
         private JButton custom;
         private JButton white,gray,red,purple,blue,green,yellow,orange;
         private JButton black,darkgray,darkred,darkpurple,darkblue,darkgreen,darkyellow,darkorange;
         private JButton rect,oval,line,solid,hollow,erase;
         private CardLayout drawingscreens;
         private MyShape [] shapes=new MyShape[10];
         private MyShape newshape=new MyShape();     
         private Data information;//=new Data(newshape, shapes);
         private MyPanel temp;//=new MyPanel(information);
         private int thiscard;
         public int x,y;
         //Holder Variable to hold info about shape to be drawn
         int shape;
         int fill;
         int draw;
         int tx,ty,bx,by;
         public void init()
              Container window=getContentPane();
                   window.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   //Top Button Setup
                   first=new JButton("First");
                   first.addActionListener(this);
                   first.setPreferredSize(new Dimension(100,40));
                   next=new JButton("Next");
                   next.addActionListener(this);
                   next.setPreferredSize(new Dimension(100,40));
                   previous=new JButton("Previous");
                   previous.addActionListener(this);
                   previous.setPreferredSize(new Dimension(100,40));
                   last=new JButton("Last");
                   last.addActionListener(this);
                   last.setPreferredSize(new Dimension(100,40));
                   help=new JButton("Help");
                   help.addActionListener(this);
                   help.setPreferredSize(new Dimension(100,40));
                   //TOP PANEL SETUP
                   top=new JPanel();
                   top.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   top.setPreferredSize(new Dimension(800,40));
                   top.setOpaque(true);
                   top.setBackground(Color.white);
                   top.add(first);
                   top.add(next);
                   top.add(previous);
                   top.add(last);
                   top.add(help);
                   window.add(top);
                   //Left Buttons Setup
                   rect=new JButton("Rectangle");
                   rect.setPreferredSize(new Dimension(100,40));
                   rect.addActionListener(this);
                   oval=new JButton("Oval");
                   oval.setPreferredSize(new Dimension(100,40));
                   oval.addActionListener(this);
                   line=new JButton("Line");
                   line.setPreferredSize(new Dimension(100,40));
                   line.addActionListener(this);
                   solid=new JButton("Solid");
                   solid.setPreferredSize(new Dimension(100,40));
                   solid.addActionListener(this);
                   hollow=new JButton("Hollow");
                   hollow.setPreferredSize(new Dimension(100,40));
                   hollow.addActionListener(this);
                   erase=new JButton("Erase");
                   erase.setPreferredSize(new Dimension(100,40));
                   erase.addActionListener(this);
                   //Left Panel Setup
                   left=new JPanel();
                   left.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   left.setPreferredSize(new Dimension(200,600));     
                   left.add(rect);
                   left.add(oval);
                   left.add(line);
                   left.add(solid);
                   left.add(hollow);
                   left.add(erase);
                   window.add(left);// FlowLayout.LEFT);
                   //Middle Setup
                   temp=new panel();
                   temp.setPreferredSize(new Dimension(600,600));
                   temp.setOpaque(true);
                   temp.setBackground(Color.red);
                   temp.addMouseListener(this);
                   window.add(temp);
                   //Panel Listener Initailization
                   for(int i=0; i<shapes.length; i++)
                        shapes=new MyShape();
                   information=new Data(newshape, shapes);
                   temp=new MyPanel(information);
                   Listener panelListener=new Listener(temp, newshape, information);
                   //shapes
                   window.add(temp);
                   temp.addMouseListener(panelListener);
                   //Bottom Buttons Setup
                   int bsize=20; //Int for horz/vert size of buttons
                   //Left Setup, creates a JPanel which displays the current color
                   bottomleft=new JPanel();
                   bottomleft.setPreferredSize(new Dimension(2*bsize,2*bsize));
                   bottomleft.setLayout(new FlowLayout(0,0, FlowLayout.LEFT));
                   bottomleft.setOpaque(true);
                   //Middle Setup creates buttons for each pregenerated color in the top row
                   black=new JButton();
                   black.setPreferredSize(new Dimension(bsize,bsize));
                   black.setOpaque(true);
                   black.setBackground(new Color(0,0,0));
                   black.addActionListener(this);
                   darkgray=new JButton();
                   darkgray.setPreferredSize(new Dimension(bsize,bsize));
                   darkgray.setOpaque(true);
                   darkgray.setBackground(new Color(70,70,70));
                   darkgray.addActionListener(this);
                   darkred=new JButton();
                   darkred.setPreferredSize(new Dimension(bsize,bsize));
                   darkred.setOpaque(true);
                   darkred.setBackground(new Color(180,0,0));
                   darkred.addActionListener(this);
                   darkpurple=new JButton();
                   darkpurple.setPreferredSize(new Dimension(bsize,bsize));
                   darkpurple.setOpaque(true);
                   darkpurple.setBackground(new Color(185,0,185));
                   darkpurple.addActionListener(this);
                   darkblue=new JButton();
                   darkblue.setPreferredSize(new Dimension(bsize,bsize));
                   darkblue.setOpaque(true);
                   darkblue.setBackground(new Color(0,0,150));
                   darkblue.addActionListener(this);
                   darkgreen=new JButton();
                   darkgreen.setPreferredSize(new Dimension(bsize,bsize));
                   darkgreen.setOpaque(true);
                   darkgreen.setBackground(new Color(0,140,0));
                   darkgreen.addActionListener(this);
                   darkyellow=new JButton();
                   darkyellow.setPreferredSize(new Dimension(bsize,bsize));
                   darkyellow.setOpaque(true);
                   darkyellow.setBackground(new Color(176,176,0));
                   darkyellow.addActionListener(this);
                   darkorange=new JButton();
                   darkorange.setPreferredSize(new Dimension(bsize,bsize));
                   darkorange.setOpaque(true);
                   darkorange.setBackground(new Color(170,85,0));
                   darkorange.addActionListener(this);
                   //Adds each button to a Panel
                   bottommiddletop=new JPanel();
                   bottommiddletop.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   bottommiddletop.setPreferredSize(new Dimension(8*bsize,bsize));
                   bottommiddletop.add(black);
                   bottommiddletop.add(darkgray);
                   bottommiddletop.add(darkred);
                   bottommiddletop.add(darkpurple);
                   bottommiddletop.add(darkblue);
                   bottommiddletop.add(darkgreen);
                   bottommiddletop.add(darkyellow);
                   bottommiddletop.add(darkorange);     
                   //Bottom Middle Creates bottom row of colors like top
                   white=new JButton();
                   white.setPreferredSize(new Dimension(bsize,bsize));
                   white.setOpaque(true);
                   white.setBackground(new Color(255,255,255));
                   white.addActionListener(this);
                   gray=new JButton();
                   gray.setPreferredSize(new Dimension(bsize,bsize));
                   gray.setOpaque(true);
                   gray.setBackground(new Color(192,192,192));
                   gray.addActionListener(this);
                   red=new JButton();
                   red.setPreferredSize(new Dimension(bsize,bsize));
                   red.setOpaque(true);
                   red.setBackground(new Color(255,0,0));
                   red.addActionListener(this);
                   purple=new JButton();
                   purple.setPreferredSize(new Dimension(bsize,bsize));
                   purple.setOpaque(true);
                   purple.setBackground(new Color(213,0,213));
                   purple.addActionListener(this);
                   blue=new JButton();
                   blue.setPreferredSize(new Dimension(bsize,bsize));
                   blue.setOpaque(true);
                   blue.setBackground(new Color(0,0,255));
                   blue.addActionListener(this);
                   green=new JButton();
                   green.setPreferredSize(new Dimension(bsize,bsize));
                   green.setOpaque(true);
                   green.setBackground(new Color(0,255,0));
                   green.addActionListener(this);
                   yellow=new JButton();
                   yellow.setPreferredSize(new Dimension(bsize,bsize));
                   yellow.setOpaque(true);
                   yellow.setBackground(new Color(255,255,0));
                   yellow.addActionListener(this);
                   orange=new JButton();
                   orange.setPreferredSize(new Dimension(bsize,bsize));
                   orange.setOpaque(true);
                   orange.setBackground(new Color(244,122,0));
                   orange.addActionListener(this);
                   //Attaches buttons to a panel
                   bottommiddle=new JPanel();
                   bottommiddle.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   bottommiddle.setPreferredSize(new Dimension(8*bsize,bsize));
                   bottommiddle.add(white);
                   bottommiddle.add(gray);
                   bottommiddle.add(     red);
                   bottommiddle.add(purple);
                   bottommiddle.add(blue);
                   bottommiddle.add(green);
                   bottommiddle.add(yellow);
                   bottommiddle.add(orange);     
                   //Creates middle panel for bottom
                   bottom=new JPanel();
                   bottom.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   bottom.setPreferredSize(new Dimension(8*bsize,2*bsize));
                   bottom.add(bottommiddletop);
                   bottom.add(bottommiddle);               
                   //This is for a button on buttom right to make custom colors.
                   //Right Setup creates a button which allows you to make your own color
                   custom=new JButton("More");
                   custom.setPreferredSize(new Dimension(4*bsize,2*bsize));
                   custom.setOpaque(true);
                   bottomright=new JPanel();
                   bottomright.setLayout(new FlowLayout(0,0,FlowLayout.LEFT));
                   bottomright.setPreferredSize(new Dimension(4*bsize,2*bsize));
                   bottomright.add(custom);
                   //The Panel containing current color is added first
                   //Then the two colors panels are added
                   //Then the panel with a custom button is added
                   window.add(bottomleft);
                   window.add(bottom);
                   window.add(bottomright);
         public void actionPerformed(ActionEvent e)
              //Buttons to change colors
              if(e.getSource()==black)
                   bottomleft.setBackground(new Color(0,0,0));
                   newshape.setColor(0,0,0);
              if(e.getSource()==darkgray)
                   bottomleft.setBackground(new Color(70,70,70));
                   newshape.setColor(70,70,70);
              if(e.getSource()==darkred)
                   bottomleft.setBackground(new Color(180,0,0));
                   newshape.setColor(180,0,0);
              if(e.getSource()==darkpurple)
                   bottomleft.setBackground(new Color(185,0,185));
                   newshape.setColor(185,0,185);
              if(e.getSource()==darkblue)
                   bottomleft.setBackground(new Color(0,0,150));
                   newshape.setColor(0,0,150);
              if(e.getSource()==darkgreen)
                   bottomleft.setBackground(new Color(0,140,0));
                   newshape.setColor(0,140,0);
              if(e.getSource()==darkyellow)
                   bottomleft.setBackground(new Color(176,176,0));
                   newshape.setColor(176,176,0);
              if(e.getSource()==darkorange)
                   bottomleft.setBackground(new Color(170,85,0));
                   newshape.setColor(170,85,0);
              if(e.getSource()==white)
                   bottomleft.setBackground(new Color(255,255,255));
                   newshape.setColor(255,255,255);
              if(e.getSource()==blue)
                   bottomleft.setBackground(new Color(0,0,255));
                   newshape.setColor(0,0,255);
              if(e.getSource()==red)
                   bottomleft.setBackground(new Color(255,0,0));
                   newshape.setColor(255,0,0);
              if(e.getSource()==green)
                   bottomleft.setBackground(new Color(0,255,0));
                   newshape.setColor(0,255,0);
              if(e.getSource()==purple)
                   bottomleft.setBackground(new Color(213,0,213));
                   newshape.setColor(213,0,213);
              if(e.getSource()==yellow)
                   bottomleft.setBackground(new Color(255,255,0));
                   newshape.setColor(255,255,0);
              if(e.getSource()==orange)
                   bottomleft.setBackground(new Color(244,122,0));
                   newshape.setColor(244,122,0);
              if(e.getSource()==gray)
                   bottomleft.setBackground(new Color(192,192,192));
                   newshape.setColor(192,192,192);
              //Code for setting shape to draw
              if(e.getSource()==rect)
                   setShapes();
                   rect.setBackground(Color.blue);               
                   newshape.setShape(1);
              if(e.getSource()==line)
                   setShapes();
                   newshape.setShape(0);
                   line.setBackground(Color.blue);
              if(e.getSource()==oval)
                   setShapes();
                   newshape.setShape(2);
                   oval.setBackground(Color.blue);
              //Code for setting to fill or not
              if(e.getSource()==solid)
                   solid.setBackground(Color.blue);
                   hollow.setBackground(Color.gray);
                   newshape.setFill(1);
              if(e.getSource()==hollow)
                   hollow.setBackground(Color.blue);
                   solid.setBackground(Color.gray);
                   newshape.setFill(0);
         public void setShapes()
              rect.setBackground(Color.gray);
              oval.setBackground(Color.gray);
              line.setBackground(Color.gray);
    class Data
         private MyShape newshape;
         private MyShape [] shapes;
         public Data(MyShape a, MyShape [] b)
              newshape=a;
              shapes=b;
         public void drawShapes(Graphics g)
              drawAllShapes(g);
         public void sortShapes()
              for(int t=8; t>=0; t--)
                   shapes[t+1]=shapes[t];
              shapes[0]=newshape;
              System.out.println("Shapes Sorted");
         public void drawAllShapes(Graphics g)
              newshape.reset(true);
              for(int i=9; i>=0; i--)
                   shapes[i].drawShape(g);
              System.out.println("Shapes Drawn??");
    class MyPanel extends JPanel
         private Data information;
         public MyPanel(Data a)
              information=a;
              setPreferredSize(new Dimension(600,600));
              setBackground(Color.blue);
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              information.drawShapes(g);
    class Listener extends MouseAdapter
         int x,y;
         private int [] loc=new int[4];
         int horzL, vertL;
         private boolean clicked=false;
         private boolean sortonce;
         private MyPanel temp;
         private MyShape newshape;
         private Data information;
         private int xt,yt,xl,yl;
         public Listener(MyPanel d, MyShape b, Data c)
              temp=d;
              newshape=b;          
              information=c;
         public void mouseClicked(MouseEvent e)
              if(clicked==false)
                   x=e.getX();
                   y=e.getY();
                   clicked=true;
              else
              if(clicked==true)
                   mouseloc(x,y,e.getX(),e.getY());
                   information.sortShapes();
                   temp.repaint();
                   clicked=false;
         public void mouseloc(int xt,int yt,int xl,int yl)
              loc[0]=xt;
              loc[1]=yt;
              loc[2]=xl;
              loc[3]=yl;
              newshape.setLoc(xt,yt,xl,yl);
              newshape.doDraw(true);
    class MyShape
         private int xL, yL, xR, yR; //Local location ints for this class;
         private int red, blue, green; //Local ints defining this color;
         private int shape,fill; //Local info about shape
         private boolean draw=false; // Determines if Shape will draw
         private boolean setupshape=true;
         public void MyShape()
         public void doDraw(boolean a)
              draw=a;
         public void setLoc(int xt,int yt,int xb,int yb)
              xL=xt;
              yL=yt;
              xR=xb;
              yR=yb;
         public void setColor(int r,int b,int g)
              red=r;
              blue=b;
              green=g;
         public void setShape(int thisshape)
              shape=thisshape;
         public void setFill(int fil)
              fill=fil;
         public void drawShape(Graphics g)
              if(draw==true && setupshape==true)
                   System.out.println("This shape setup");
                   g.setColor(new Color(red,blue,green));
                   switch(shape)
                        case 0: makeLine(g);break;
                        case 1: makeRect(g);break;
                        case 2: makeOval(g);break;
                   setupshape=false;
              else if(draw==true)
                   System.out.println("This shape redrawn");
                   switch(shape)
                        case 0: drawLine(g);break;
                        case 1: drawRect(g);break;
                        case 2: drawOval(g);break;
         public void reset(boolean a)
              setupshape=a;
         public void drawLine(Graphics g)
              g.drawLine(xL,yL,xR,yR);
         public void drawRect(Graphics g)
              if(fill==0)
                   g.drawRect(xL,yL,xR,yR);
              else
                   g.fillRect(xL,yL,xR,yR);
         public void drawOval(Graphics g)
              if(fill==0)
                   g.drawOval(xL,yL,xR,yR);
              else
                   g.fillOval(xL,yL,xR,yR);
         public void makeLine(Graphics g)
              g.drawLine(xL,yL,xR,yR);
         public void makeRect(Graphics g)
              sortvalue();
              if(fill==0)
                   g.drawRect(xL,yL,xR,yR);
              else
                   g.fillRect(xL,yL,xR,yR);
         public void makeOval(Graphics g)
              sortvalue();
              if(fill==0)
                   g.drawOval(xL,yL,xR,yR);
              else
                   g.fillOval(xL,yL,xR,yR);
         public void sortvalue()
                   if(xR<xL)
                   int temp=xR;
                   xR=xL;
                   xL=temp;
              if(yR<yL)
                   int temp=yR;
                   yR=yL;
                   yL=temp;
              yR=(yR-yL);
              xR=(xR-xL);     

    Sorry mate but you need a lot of work....
    I like what you've done but (in my humble opinion) it needs a lot of reworking.
    Your problem is you're not storing the shapes. You've set up an array but you never assign the shapes to it. I would reccomend using a vector. Heres a quick bit of pseudo code.
    Listener class
    mouseClicked method
    if first click
    get mouse x/y
    if second click
    get mouse x/y
    create new MyShape(x1, y1, x2, y2)
    call data.addShape(new MyShape)
    Data class
    constructor
    this.myVector = new Vector()
    addShape(MyShape shape) method
    this.myVector.addElement(shape) -- add new shape
    this.myVector.remove(0) -- remove bottom shape
    drawAllShapes method
    Enumeration enum= this.myVector.elements()
    while(enum.hasMoreElements())
    MyShape shape = (MyShape)enum.nextElement()
    shape.draw()
    Feel free to ask any questions.
    Rob.

Maybe you are looking for

  • Reading azure table - The request has timed out

    Hi, I am developing a Windows store application with offline synchronization using Azure Mobile services. Have a table called IMobileserviceSyncTable<PRODUCT> ProductTbl= App.MobileServiceClient.GetSyncTable<PRODUCT>(); When I am calling ProductTbl.P

  • Compatibility when uploading to a school submission

    I am running a MacBook Pro 13" (Mavericks) with Boot Camp and Windows 7 Professional. I have had more issues with uploading for school. Formating has gotten messed up when downloading my original mac file from their file storage site back to my compu

  • What is the MACHINE_IDENTITY identity preference in the System Keychain for?

    I am slowly succeeding in nursing my broken Mountain Lion Server back to life. A name change hosed it, probably because of some remaining stuff in the Keychains. In my System Keychain, I have OPENDIRECTORY_ROOT_CA_IDENTITY - points to a Self-signed r

  • Visual Studio UI not refreshing

    Hello, I have downloaded webinstaller of Microsoft Visual Studio Ultimate 2013 32-bit (English) from dreamspark and installed it. However, after installation the UI of Visual Studio was not refreshing properly. I had gray background, moving mouse ove

  • Itunes does not recognise the ipod after update to itunes 8.2.0.23

    Hi, Now find, after putting new songs in my play list, that when I plug in ipod to update songs on ipod itunes does not recognise the ipod. The version of iTunes I updated to was 8.2.0.23 - everything worked fine until then. I see there is a newer ve