Shocky repainting and duplicate objects on screen

Good day,
First of all let me say I'm not all to familiar in Desktop applications so i find myself struggling with paint and repainting problems a lot.
Now, i have a problem when i paint objects to the screen which are updated through an observer update.
I've posted most of the class Track.java(which is currently a JComponent) which contains obstacles to be painted on it. In the paint method i also draw lines to create a simple illusion of movement, thought it seems like those get updated more frequent then the obstacles (which are JPanels; I;ve also tried JLabels as i reckon repainting JPanels every 20ms might be a heavy load).
Edit: The obstacles stay in the screen sometimes; it looks like they get a duplicated object on a certain (totaly random) moment and stay there until an other object gets loaded into the `holder`. Also i mentioned in the title that the objects shocked through the screen this is the same problem as i mentioned above.
Posted the only method in Model.Car that sends a update to the track
I hope all of this makes sense and are able to give me directions which might lead to a solution.
Thanks in advance
    public Track(Model.ICar car, Model.ITrack track, View.Game game, View.Car viewCar, int limiter) {
        super();
        this.setBounds(10,10,400,400);
        this.setFocusable(true);
        this.setLayout(null);
        this.grabFocus();
        this.car           = car;
        this.track         = track;
        this.game          = game;
        this.viewCar       = viewCar;
        this.limiter       = limiter;
        this.obstaclePart  = track.getObstaclePart()/this.limiter;
        this.oilObj        = new Oil[(int)Math.floor(visibleTrackRange/obstaclePart)+2];
        this.replOilObj    = new Oil[track.getObstObstacleList().size()];
        this.barrelObj     = new Barrel[(int)Math.floor(visibleTrackRange/obstaclePart)+2];
        this.replBarrelObj = new Barrel[track.getObstObstacleList().size()];
        this.obstacleList  = new java.util.ArrayList();
        addObstacles();
        updateObstacles();
  public void paint(Graphics g) {
        super.paintComponents(g);
        if (linePos >= 600) this.linePos = 0;
        if (secLinePos >= 600) this.secLinePos = 0;
        g.setColor(c);
        g.fillRect(195, linePos, 6, 120);
        g.fillRect(391, linePos, 6, 120);
        g.fillRect(195, secLinePos, 6, 120);
        g.fillRect(391, secLinePos, 6, 120);
        if(this.finishPosition>-1) this.paintFinish(g);
        g.dispose();
    public void update(Observable o, Object arg) {
        if (o.equals(car)) {
            linePos    += (int) (car.getSpeed() / this.limiter);
            secLinePos += (int) (car.getSpeed() / this.limiter);
            yPos        = (int) (car.getY() / this.limiter);
            viewCar.thetaChanged( car.getTheta() );
            updateObstacles();
            repaint();
        } else if (o.equals(track)) {
            if (((Model.Track)o).getCollidedBool()) game.gameOver();
            else game.finish();
    public void reset() {
        this.car            = null;
        this.track          = null;
        this.game           = null;
        this.finishPosition = -1;
        removeObstacles();
        obstacleList        = null;
    // Start private methods
    private void addObstacles() {
        for(int i=0; i<Math.floor((visibleTrackRange/obstaclePart)+2); i++) {
                oilObj[i] = new Oil(game.initImage("images\\oil.png"));
                oilObj.setBounds(-500, -500, (Model.Barrel.WIDTH*60), (Model.Barrel.LENGTH*60));
this.add(oilObj[i]);
barrelObj[i] = new Barrel(game.initImage("images\\barrel.png"));
barrelObj[i].setBounds(-500, -500, (Model.Barrel.WIDTH*60), (Model.Barrel.LENGTH*60));
this.add(barrelObj[i]);
java.util.ArrayList tmpList = track.getObstObstacleList();
for(int j=0; j<tmpList.size(); j++) {
if (((Model.Obstacle)tmpList.get(j)).getType().equals("oil")) {
replOilObj[j] = new Oil(game.initImage("images\\oil.png"));
replOilObj[j].setXPos(Math.round(((Model.Obstacle)tmpList.get(j)).getposX()));
replOilObj[j].setYPos(Math.round(((Model.Obstacle)tmpList.get(j)).getposY()/10));
obstacleList.add(j, replOilObj[j]);
} else {
replBarrelObj[j] = new Barrel(game.initImage("images\\barrel.png"));
replBarrelObj[j].setXPos(Math.round(((Model.Obstacle)tmpList.get(j)).getposX()));
replBarrelObj[j].setYPos(Math.round(((Model.Obstacle)tmpList.get(j)).getposY()/10));
obstacleList.add(j, replBarrelObj[j]);
disposeReplicas();
private void disposeReplicas() {
replOilObj = null;
replBarrelObj = null;
private void updateObstacles() {
int j, obstacleIndex = (yPos -(yPos%obstaclePart))/obstaclePart;
j = 0;
for (int i = obstacleIndex; i < (obstacleIndex +(Math.floor(visibleTrackRange / obstaclePart) +2)); i++) {
if (((View.IObstacle)obstacleList.get(i)).getType().equals("oil") ) {
int normalizedY = 600 - ((((View.Oil)obstacleList.get(i)).getYPos() - yPos) * 60);
oilObj[j].setBounds((((View.Oil)obstacleList.get(i)).getXPos()) * 60, normalizedY,(Model.Oil.WIDTH * 60), (Model.Oil.LENGTH * 60));
} else {
int normalizedY = 600 - ((((View.Barrel)obstacleList.get(i)).getYPos() - yPos) * 60);
barrelObj[j].setBounds((((View.Barrel)obstacleList.get(i)).getXPos()) * 60, normalizedY,(Model.Barrel.WIDTH * 60),(Model.Barrel.LENGTH * 60));
j++;
Model.Car:public void move() {
this.y += (int)(speed/this.dividedDelay);
this.setChanged();
this.notifyObservers();
Edited by: BramBo__ on Nov 29, 2007 8:12 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Cheers for the respone.
The first error, well i was messing around with the paint methods i'm still not 100% on the difference between all of them so i forgot to edit them back.
so i changed it all back to :
public void paintComponent(Graphics g) {
        super.paintComponent(g);Secondly i've looked into the layered panes, the problem is that i'll have to alter the JFrame directly. Currently this class(code below) is extended from a ImagePanel, which is an extended JPanel(code Below).
I've changed all the objects to JLabels and instead of calling setBounds im calling setLocation now, unfortunately it hasnt changed a thing. (i;ve also included a obstacle class, see below)
As i interpreted the layeredPane it just adds the functionality to add a Z-dimension to the Frame and it doesnt quite change the efficiency problem i seem to be suffering, or does it?
Track Class creation:
public class Track extends javax.swing.JComponent implements Observer ImagePanel code:
public class ImagePanel extends JPanel {
    Image bgImg;
    public ImagePanel(Image imgSrc) {
        this.bgImg = imgSrc;
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.drawImage(bgImg, 0, 0, this);
public class Oil extends JLabel implements View.IObstacle {
    private int xPos, yPos;
    private String type = "oil";
    public Oil(String image) {
        super(new ImageIcon(image));
        this.setOpaque(false);
        this.setPreferredSize(new Dimension((Model.Oil.WIDTH*60), (Model.Oil.LENGTH*60)));
        this.setLayout(null);
    public int getXPos()          { return xPos; }
    public int getYPos()          { return yPos; }
    public String getType()       { return type; }
    public void setXPos(int xPos) { this.xPos = xPos; }
    public void setYPos(int yPos) { this.yPos = yPos; }
}

Similar Messages

  • How to get subject text and Reference Object both Screens at the Header lev

    Dear Experts ,
                    I am getting only Notification Header Screen ( Subject Text, Notification system and User Status) at the Header of Notification and different Tabs under that screen.
                    I want Subject Text and Reference Object screens at header Level so that any screen Tab selected at a time I can see the Subject and Reference Object of the Notification.
                    Pls tell me is there any way so I can Include 2 screens( Subject and Reference Object at the Header Level.)
    With best regards,
    Narendra

    Narendra,
    You can't in the standard system.
    Only the tabs are configurable.
    PeteA

  • Wanted: Script to duplicate objects and apply colours

    Hi
    I am looking to pay someone to write a script which can duplicate objects and apply colours.
    I have a full break down of the project together with a Illustrator Action that demonstrates the functionality of the required script.
    If you are interested, please email [email protected] for full details.
    You can also send me a private message.

    big_smile wrote:
    - script which can duplicate objects and apply colours.
    - Illustrator Action that demonstrates the functionality of the required script.
    Can you post a screen shot of the resulting outcome, derived from your current action, so we can see the desired result?

  • Is it possible working with screen without UDO and No object

    Hi All ,
             we can develop screens  without using User Defined Object and No object
    If yes ,tell me how
    Thanks in Advance
    Vivek

    Hello,
    Yes, you can develop forms without UDT and Object.
    It is not easy, you should program every standard procedure like, find, add, update, delete, navigation (first, last, next previous).
    In some previous versions, while the UDO was not present i was using this...
    For UDT you can use databrowser, and you can bind data to the UDT tables.....
    Good luck.
    János

  • SCREEN VARIANTS" and "MAINTANANCE AND TRANSPORT OBJECTS"

    Hello Guru's,
    am in upgradation now in the stage of working with "SPAU"
    I want to do compare  "SCREEN VARIANTS" and "MAINTANANCE AND TRANSPORT OBJECTS"
    with old to new versions
    can we do that with SPAU or any other will required?
    help me on the above
    points will be rewarded>>>(**)
    Thanks in advance.......

    Hello Guru's,
    am in upgradation now in the stage of working with "SPAU"
    I want to do compare  "SCREEN VARIANTS" and "MAINTANANCE AND TRANSPORT OBJECTS"
    with old to new versions
    can we do that with SPAU or any other will required?
    help me on the above
    points will be rewarded>>>(**)
    Thanks in advance.......

  • Difference between repaint() and paint()

    also i wanna know what it does inside the paint(), repaint() and update()
    Can anyone give me some links about this?
    Thank you.

    To expand briefly on what patrix3 already said:
    The GUI thread will automatically call update() to correct painting issues (such as when areas of the screen become damaged due to objects moving on top of them, etc.). However, the programmer can specify when a region needs to be repainted by calling repaint(); this does not immmediately make a call to update(). Rather, the GUI is informed that a call to update is requested, and it executes when it can (this usually happens so fast that it seems as if repaint() immediately calls update(), but there's an important reason why it doesn't).
    update() does nothing more than clear the screen and then call paint(). The version of update patrix3 gave simply ommits the screen clearing (which can cause flickering).
    If multiple requests are made to repaint() before the GUI thread gets to them, then it will only execute the last one, the other requests are ignored. This is important because otherwise the GUI thread could 'fall behind' in trying to repaint the screen, if many calls to repaint() have been made.

  • Duplicate Object Name Error When Publishing Crystal Reports from BW to BOE

    Hi,
    We recently upgraded our systems (all client and server) to SP2.7 in order to solve a problem with saving Crystal Reports to BW.  Now we are experiencing a new error when trying to publish a Crystal Report from BW to BOE (either all in one step from Crystal Reports application or directly from within BW).
    Upon trying to publish a Crystal Report from BW to BOE, we get the following error:
    "An error occurred while saving and / or publishing.  The return code 1 was returned from the server.  Logon to Crystal Enterprise failed.  Unable to commit the changes to Enterprise.  Reason: Failed to commit objects to server : Duplicate object name in the same folder."
    We have repeated this issue numerous time with different reports, users and logon credentials and have verified that there are NOT any duplicate object names.
    Additionally, in some cases, the report ultimately publishes to BOE, but with the above error interruption along the way.
    Any ideas?
    Thanks,
    Josh
    Edited by: Josh Crawford on May 10, 2010 9:46 AM

    Ingo,
    Apologies for the delayed response.  We've spent a few days poking around with this issue, and had even opened a customer message for it (13641).
    In the end, it seems that the problem was somehow associated with the "Prepare this report for translation." flag in the "Save to BW Options" dialog box of Crystal Reports.  If we try to Save & Publish with the Translation flag selected, we get the duplicate entry error.  If we Save & Publish without the Translation flag selected, everything is fine.
    There are still some details we need to look into, but for the time being it looks like we don't have an issue anymore(assuming we ever did) as we're not concerned with Translation capabilities.
    If we come across the problem again, I'll post again.
    Thanks,
    Josh

  • Difference b/w DATA TYPE and DATA OBJECT & differences b/w TYPE and LIKE

    hai
    can any one say the differences between Data type and Data Object.
    And also differences between TYPE and LIKE
    thanks
    Gani

    hi,
    _Data Types and Data Objects_
          Programs work with local program data – that is, with byte sequences in the working memory. Byte sequences that belong together are called fields and are characterized by a length, an identity (name), and – as a further attribute – by a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
          In the ABAP type concept, fields are called data objects. Each data object is thus an instance of an abstract data type. There are separate name spaces for data objects and data types. This means that a name can be the name of a data object as well as the name of a data type simultaneously.
    Data Types
       As well as occurring as attributes of a data object, data types can also be defined independently. You can then use them later on in conjunction with a data object. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program using the TYPESstatement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
         All programming languages distinguish between various types of data with various uses, such as ….. type data for storing or displaying values and numerical data for calculations. The attributes in question are described using data types. You can define, for example, how data is stored in the repository, and how the ABAP statements work with the data.
    Data types can be divided into elementary, reference, and complex types.
    a. Elementary Types
    These are data types of fixed or variable length that are not made up of other types.
    The difference between variable length data types and fixed length data types is that the length and the memory space required by data objects of variable length data types can change dynamically during runtime, and that these data types cannot be defined irreversibly while the data object is being declared.
    Predefined and User-Defined Elementary Data Types
    You can also define your own elementary data types in ABAP using the TYPES statement. You base these on the predefined data types. This determines all of the technical attributes of the new data type. For example, you could define a data type P_2 with two decimal places, based on the predefined data type P. You could then use this new type in your data declarations.
    b.  Reference Types
    Reference types are deep data types that describe reference variables, that is, data objects that contain references. A reference variable can be defined as a component of a complex data object such as a structure or internal table as well as a single field.
    c. Complex Data Types
    Complex data types are made up of other data types. A distinction is made here between structured types and table types.
    Data Objects
          Data objects are the physical units with which ABAP statements work at runtime. The contents of a data object occupy memory space in the program. ABAP statements access these contents by addressing the name of the data object and interpret them according to the data type.. For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
           Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type). You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
            A data object is a part of the repository whose content can be addressed and interpreted by the program. All data objects must be declared in the ABAP program and are not persistent, meaning that they only exist while the program is being executed. Before you can process persistent data (such as data from a database table or from a sequential file), you must read it into data objects first. Conversely, if you want to retain the contents of a data object beyond the end of the program, you must save it in a persistent form.
    Declaring Data Objects
          Apart from the interface parameters of procedures, you declare all of the data objects in an ABAP program or procedure in its declaration part. These declarative statements establish the data type of the object, along with any missing technical attributes. This takes place before the program is actually executed. The technical attributes can then be queried while the program is running.
         The interface parameters of procedures are generated as local data objects, but only when the procedure is actually called. You can define the technical attributes of the interface parameters in the procedure itself. If you do not, they adopt the attributes of the parameters from which they receive their values.
    ABAP contains the following kinds of data objects:
    a.  Literals
    Literals are not created by declarative statements. Instead, they exist in the program source code. Like all data objects, they have fixed technical attributes (field length, number of decimal places, data type), but no name. They are therefore referred to as unnamed data objects.
    b.  Named Data Objects
    Data objects that have a name that you can use to address the ABAP program are known as named objects. These can be objects of various types, including text symbols, variables and constants.
    Text symbols are pointers to texts in the text pool of the ABAP program. When the program starts, the corresponding data objects are generated from the texts stored in the text pool. They can be addressed using the name of the text symbol.
    Variables are data objects whose contents can be changed using ABAP statements. You declare variables using the DATA, CLASS-DATA, STATICS, PARAMETERS, SELECT-OPTIONS, and RANGESstatements.
    Constants are data objects whose contents cannot be changed. You declare constants using the CONSTANTSstatement.
    c.  Anonymous Data  Objects
    Data objects that cannot be addressed using a name are known as anonymous data objects. They are created using the CREATE DATAstatement and can be addressed using reference variables.
    d.  System-Defined Data Objects
    System-defined data objects do not have to be declared explicitly - they are always available at runtime.
    e.  Interface Work Areas
    Interface work areas are special variables that serve as interfaces between programs, screens, and logical databases. You declare interface work areas using the TABLES and NODESstatements.
    What is the difference between Type and Like?
    Answer1:
    TYPE, you assign datatype directly to the data object while declaring.
    LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.
    Answer2:
    Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.
    Answer3:
    type refers the existing data type
    like refers the existing data object
    reward if useful
    thanks and regards
    suma sailaja pvn

  • I downlaoded Firefox 4 and now it won't let me open up on another screen..I have 2 screens side by side!!I used open up mulitable browsers and move them from screen to screen!Now i cant..Only opens to screen 1!!

    Before i downloaded Firefox 4, i could open up mulitable screens and move them from screen to screen..I have one computer with 2 screens side by side..Say i open up your browser and then open up another browser session,I could then move that browser session to the other screen,,Great for researching and looking at different websites side by side!!Now i cant even shrink it and move that browser to the other side(other screen)..Before i could!!!

    A brief and probably non-helpful answer: I know of no way to eliminate your large amount of duplicates other than by repetitive, tedious manual effort.
    *There has got to be a simpler way.*
    I hope you're right, but I don't think there is a simpler way.
    BACKUP:  It also appears that the only way I can back up the catalog is to shut down LR.  Really?!
    Yes, really

  • There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder.

    Post Author: dmface15
    CA Forum: Administration
    I am working in a new enviorment and i am trying to save a report to the Crystal Server via the CMC. I am uploading the report from the objects tab and attempting to save to a folder. The report has 1 static defined parameter and that's it. When i click submit to save the report i receive the following error message: "There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder." There is not a anothe report within the folder with that name. What could be causing this error message and equally important, what is the solution.

    hte message you received about duplicate user probably means something hadn't fully updated yet. Once it did then it worked...
    Regards,
    Tim

  • Call transaction using bdc tab and also skip first screen??

    Hi,
    Please help.
    I want to call transaction PA30 fill it with values which are determined only at runtime and then skip first screen.
    The screen doesn't have parameter fields so i cannot use 'set parameter id'.
    I also cannot create a transaction with parameters as I only have these at runtime.
    Anyone done anything like this???

    hi,
      you might be populateing the itab bdc_tab with the corresponding values fronm the recording.
    while doing the recording go until to the screen wher u want to finsih.
    and populate the bdc_tab wit the ok code,screen number and the value.
    this will do.
    for eg see the code below.
    METHOD analyze_log.
      DATA : wrk_extid TYPE balhdr-extnumber.
      DATA : wrk_date(10) TYPE c.
      DATA : it_rspar TYPE TABLE OF rsparams .
      DATA : wa_rspar TYPE rsparams.
      DATA: it_bdcdata TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
      DATA: params TYPE ctu_params.
      CONSTANTS : object TYPE balhdr-object VALUE 'ZKIV_LOG'.
      IF wa_kopf-vertr_nr IS NOT INITIAL.
        CONCATENATE wa_kopf-vertr_nr '/' wa_kopf-nachtr_nr  INTO wrk_extid.
        wrk_date = '01.09.2006'.
        SET PARAMETER ID 'BALOBJ' FIELD object .
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
        wa_rspar-selname = 'ALDATE'.
        wa_rspar-sign = 'I'.
        wa_rspar-kind = 'P'.
        wa_rspar-option = 'EQ'.
        wa_rspar-low = wrk_date.
        APPEND wa_rspar TO it_rspar.
      ELSE.
        CLEAR wrk_extid.
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
      ENDIF.
    Update BDC tab
    --Call SLG1 using BDC--&
      params-dismode = 'E'. "Show errors only
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_CURSOR'.
      wa_bdcdata-fval = 'BALHDR-ALDATE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BALHDR-ALDATE'.
      wa_bdcdata-fval = wrk_date.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=SELE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=&F03'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_SUBSCR'.
      wa_bdcdata-fval = 'SAPLSBAL_DISPLAY                        0101SUBSCREEN'.
      APPEND wa_bdcdata TO it_bdcdata.
      CALL TRANSACTION 'SLG1' USING it_bdcdata OPTIONS FROM params.
    --End of BDC--&
    ENDMETHOD.
    here wat i m doing is that i dont want the subscreen 101 to be displayed..
    Message was edited by:
            Sandeep S

  • Performance and Sprite objects

    I've written an application in Flex 2 that consists of
    several accordions containing custom canvas objects, and it is
    having performance problems.
    I'm running the application within IE 6.0 under Windows 2000.
    The application loads an XML file and uses the data to create
    custom Sprite objects in the canvases. Each Sprite consists of two
    swf images that are loaded using the Loader class, a small
    rectangle created by using the Sprite graphics property, and a text
    label. In addition, each Sprite is connected to one or more other
    Sprites by a line drawn using the Sprite's graphics property. The
    Sprites have the capability for being dragged, and for being
    highlighted when clicked.
    My problem is performance; these Sprites perform slower than
    a similiar program that I wrote in ActionScript 2.0. From what I
    understand, Flex 2.0, ActionScript 3.0, Flash 9, and the new Sprite
    class are supposed to deliver greatly improved performance, but my
    new application seems worse than the old one under Flash 7 using
    MovieClips. The more Sprites on the screen, the worse the
    performance, and the lines seem to contribute to the degradation.
    There is way too much code involved to include in this
    message, so I'm looking for general info. Is there some basic point
    I am missing?
    The performance is also degraded when triggering instances of
    the Menu and Popup classes. When running the Task Manager during
    the application, I've noticed that both Memory Usage and GDI
    objects increase whenever I display a Menu or Popup. Both Memory
    Usage and GDI objects go up and down, but there is a steady
    increase in both metrics as I continue to use Menus and Popups. As
    far as I can tell, I am disposing of both types of objects
    properly, but it appears that their allocation is remaining in
    memory.

    I've written an application in Flex 2 that consists of
    several accordions containing custom canvas objects, and it is
    having performance problems.
    I'm running the application within IE 6.0 under Windows 2000.
    The application loads an XML file and uses the data to create
    custom Sprite objects in the canvases. Each Sprite consists of two
    swf images that are loaded using the Loader class, a small
    rectangle created by using the Sprite graphics property, and a text
    label. In addition, each Sprite is connected to one or more other
    Sprites by a line drawn using the Sprite's graphics property. The
    Sprites have the capability for being dragged, and for being
    highlighted when clicked.
    My problem is performance; these Sprites perform slower than
    a similiar program that I wrote in ActionScript 2.0. From what I
    understand, Flex 2.0, ActionScript 3.0, Flash 9, and the new Sprite
    class are supposed to deliver greatly improved performance, but my
    new application seems worse than the old one under Flash 7 using
    MovieClips. The more Sprites on the screen, the worse the
    performance, and the lines seem to contribute to the degradation.
    There is way too much code involved to include in this
    message, so I'm looking for general info. Is there some basic point
    I am missing?
    The performance is also degraded when triggering instances of
    the Menu and Popup classes. When running the Task Manager during
    the application, I've noticed that both Memory Usage and GDI
    objects increase whenever I display a Menu or Popup. Both Memory
    Usage and GDI objects go up and down, but there is a steady
    increase in both metrics as I continue to use Menus and Popups. As
    far as I can tell, I am disposing of both types of objects
    properly, but it appears that their allocation is remaining in
    memory.

  • I need to flip, move and duplicate a group in InDesign CS4 JS

    Hi,
    I need fo flip, move and duplicate grouped objects in InDesign. So far I have those lines from OMV:
    var myGroup2 = myGroup.duplicate ([".0625 in", myPageHeight/2]);
    myGroup.flip (Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);
    or
    myGroup.flipItem (Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);
    myGroup.move ([".0625 in", myPageHeight/2]);
    Those lines work for single object, and what I see in OMV, it should be the same for a group(?), but they don't work.
    Your help is highly appreciated.
    Yulia.

    I got it. The lines are correct, mistake was before the lines - in the group definition. Here what I got and it's working:
    var myArray = new Array;
    //Add the items to the array.
    myArray.push(myWhiteLine);
    myArray.push(myGreenLine);
    //Group the items.
    var myPage = app.activeDocument.pages [0];
    myLineGroup = myPage.groups.add(myArray);
    var myLineGroup2 = myLineGroup.duplicate ();
    myLineGroup2.flipItem(Flip.VERTICAL, AnchorPoint.TOP_RIGHT_ANCHOR);
    Thank you.
    Yulia

  • Branching to DMS doc from SAP object trans screen(newly createdobject link)

    Hi
    I have created a new document type and been able to attach a new sap object to that DMS document and view it in the object link of that document in CV02n, Cv03N. My problem is how to display the document from sap object screen (vice versa is always possible)
    For standard object already available such linking is provided by SAP
    (like in mm03->Extras->Document data) but I have added a new SAP object say OIGV. How to browse to ducument data from o4v2, o4v3 transaction. Is there any generic strategy for enhancing each and every SAP object transaction screen to branch to its linked DMS document
    With best of regards
    Saurav Choudhury

    Hi Sai,
    regarding your description I would kindly ask you to go to transaction DC10 and mark a document type where the necessary object is linked under 'Define object links'. Choose the right object and display its details by double-click. Then you will see the field 'Create document' where you have to enter a value '1' (using transaction) or '2' (simple creation). Please enter a value and flag the 'Additional function' checkbox too.
    Based on your description I'm sure that you are using the 'simple creation' mode for this kind of object type in the DMS customizing. Please note that for the simple creation of documents mandatory fields (if set in customizing) cannot be filled and this will lead to error messages.
    Please note that the value "1" for the creation of documents is used to enable a user to simple attache a word file on object side without going to the transaction CV01n. Therefore the system behaviour is different then creating a document by CV01n and attaching a word file to it.
    However, you can change the behaviour how the document is created from equipment master transaction if you change the customizing in transaction DC10 like this:
    If you maintain the value "2" for creation of documents, the user is put to transaction CV01n for the creation of document info records. So maybe this would solve the issue.
    Best regards,
    Christoph

  • When i open illustrator and i do something the text appaers (it's not responding) and then the whole screen turns white, what can i do?

    when i open illustrator and i do something the text appaers (it's not responding) and then the whole screen turns white, what can i do?

    hiskebdb,
    If it happens when moving an object/text, the issue may be caused by the Chrome Pushbullet extension, see this post #3 by Matt with the solution,
    https://forums.adobe.com/message/6984777#6984777
    or by the Adobe Color extension, see this post #2 byhexxstatic with the solution,
    https://forums.adobe.com/message/7095368#7095368
    or by the cache on the computer, see post #5 in this thread by Booklover with the solution,
    https://forums.adobe.com/thread/1696375

Maybe you are looking for

  • ASA 5505 Backup

    Hello i have two ASA5505 . On one i have erased disk0 and i can't access it over ASDM... I have copied the 2bin files asa-k8.bin and asdm-k8.bin from the working ASA to the ereased still no ASDM... My questions are : Are the licenses gone? What shoul

  • Report to display activities of individal sales persons

    Hi Experts, My requirement is to display the list all activities of individal sales persons that has been made in the CRM system. This report is to be used by the sales manager to review the all notes that have been made in the CRM system by each ind

  • Why is my creative cloud app on windows 8.1 blank, no menu items.

    I have a Dell XPS 15 laptop running windows 8.1 When I run the creative cloud app, all I get is a blank window, with no menu items. How can I fix this?

  • Query returns more than one row

    hi all, I am getting this error msg, single row query returns more than one row after i added this (select FUNC_GET_COUNTY_NAME(CCNTY1)           FROM   proposal ) CName,   and the error is righ here  AND K.CONTID = Q.CONTID can someone help me what

  • Deleted pop mail not deleted from server

    mail retrieved from pop acct & deleted, and trash emptied, is not deleted from server, so it gets re-retrieved. settings>delete from server> when removed from inbox, but the msgs are still on the server as viewed from the isp's web interface.