How to stop the program flow

Hi all,
i need to stop the program flow control without entering into the start-of-selection.
i am using some manual conditions for validating some parameter fields...
i used Leave list-processing--->but it dosint works
call selection-screen 1000--->it works but when i click the back button the control goes inside the start-of-selection can any one help me with this....

If you want to stop the program flow in case one condition is satisfied, you can use STOP or EXIT command. Else, if you want to stop the program and debug it just but BREAK command where ever you want to stop the program. Also, if you want to validate the program selection at the time of entering the selection before the start of selection, you need to add AT SELECTION-SCREEN event block before the start of selection.

Similar Messages

  • How to stop the program for a while?

    Hi,
    I've created a small prog that the only thing it does is to ask for a given password before granting access to certain data. It works fine on the WTK emulator (from Sun of course), but it crashes on a Nokia 6600 due to a bug in the Nokia's MIDP2.0 implementation. Now I need to trace/find the exact point of the program where it crashes (in the mobile phone - where the app gets closed). MY PROBLEM is that I need to insert into the program some kinda code that stops for a while the program saying "I am at the Nth step and running fine", but I can't stop the program from executing, because I can't find out how, I've tried the
    display.setCurrent( someAlert );but it doesn't seem to stop the program like it would in an HTML JavaScript page. And:
    Thread.currentThread().sleep( 2000 );doesn't stop for some reason the program either..
    Can anyone give me a tip or a workaround of how I can temporarily stop the prog? Please help

    Try putting the current thread to sleep right after setting the alert:
    yourAlert.setTimeout(3000);
    display.setCurrent(yourAlert);
    try {
       Thread.sleep(3000);
    catch(...)

  • How to stop the data flow untill an event happens

    hi
    i have made a file\folderchooser and with the appropreate bean class
    and instead of a actionEvent for the button i have captured
    museclicked
    the problem is how do i make the flow of data sleep till the mouse is clicked 2 times .
    The main method
    public static void main(String args[])
    file_folder_chooser FFC=new file_folder_chooser();
    FFC.show();
    String fold=FFC.getSeleDirectory();
    String file=FFC.getSeleFile();
    System.out.println(fold+file);
    this method gives me a nullpointer exception because the operation is not over and there is no value in getSelefile()//getSeleDirectory()
    the solution that i found was to call Thread.sleep(15000);
    which stops the flow for 15 secs and if the operation does not end, then i get the nullpointer exception again.
    is there is a method to make all the threads sleep?
    please help me to understand
    thank you
    vinay

    so here it is
    it works both on mouse and enterkey
    and the mouseEvent has to be debugged
    import javax.swing.border.*;
    import javax.swing.tree.*;
    import java.util.zip.*;
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class checker1 extends JFrame
    public static JTree tr,tr1;
    public static JFrame fin;
    public static java.awt.List lis1,lis;
    public static JTextField tfpath,tedir,tefile,tfsave;
    public static String ab,ac;
    public static String bb[],bc[];
    public static JRadioButton dir ,singlefile,multiplefile,singledir,multipledir;
    public static JPanel p6;
    public boolean entkey;
    public checker1()
    try{
    addWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent windowevent){setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);                     dispose();                     }});
    bb=new String[20];
    bc=new String[20];
    setTitle("File menu");
    tedir=new JTextField();
    JPanel p=new JPanel();
    p.setLayout(new BorderLayout());
    JPanel p1=new JPanel();
    JPanel p7=new JPanel();
    JPanel p2=new JPanel();
    p2.setBorder(new BevelBorder(BevelBorder.RAISED));
    p2.setLayout(new FlowLayout(FlowLayout.RIGHT));
    JLabel lb=new JLabel(" Present \\ Directory ");
    p2.add(lb);
    tfpath=new JTextField();
    tfpath.setColumns(30);
    tfpath.setEditable(false);
    p2.add(tfpath);
    JCheckBox cb=new JCheckBox("edit");
    cb.setSelected(false);
    p2.add(cb);
    cb.addItemListener(new C());
    JPanel p3=new JPanel();
    JLabel lb1=new JLabel(" Filter's ");
    p3.add(lb1,"West");
    JComboBox cob=new JComboBox();
    cob.addItem("java");
    cob.addItem("class");
    cob.addItem("htm");
    cob.addItem("html");
    cob.addItem("txt");
    p3.add(cob,"East");
    cob.addItemListener(new tellf());
    p3.setBorder(new BevelBorder(BevelBorder.LOWERED));
    p3.setLayout(new FlowLayout(FlowLayout.RIGHT));
    JPanel p5=new JPanel();
    JButton but=new JButton(" To File Root's ");
    JButton qb=new JButton("Sort");
    qb.addActionListener(new sorter());
    p5.add(qb);
    but.addActionListener(new ActionListener(){public void actionPerformed(ActionEvent e){
    try{
    lis.removeAll();
    lis1.removeAll();
    tfpath.setText("");
    File f[]=File.listRoots();
    for(int i=0;i<f.length;i++)
    lis.add((f.toString()));
    } }catch(Exception ew){System.out.println(ew);}
    p5.add(but,"Center");
    p5.setBorder(new BevelBorder(BevelBorder.LOWERED));
    p5.setLayout(new FlowLayout(FlowLayout.RIGHT));
    p6=new JPanel();
    p6.setBorder(new BevelBorder(BevelBorder.LOWERED));
    p6.setLayout(new FlowLayout(FlowLayout.RIGHT));
    tfsave=new JTextField();
    tfsave.setColumns(15);
    tfsave.addKeyListener(new ketsave());
    p6.setVisible(false);
    p6.add(tfsave);
    p7.setLayout(new BorderLayout());
    JPanel p4=new JPanel();
    p4.setLayout(new GridLayout(3,1));
    p4.add(p3);
    p4.add(p5);
    p4.add(tfsave);
    tfsave.setEditable(false);
    p4.setBorder(new BevelBorder(BevelBorder.RAISED));
    //p4.setLayout(new FlowLayout(FlowLayout.RIGHT));
    p1.setLayout(new BorderLayout());
    p.setBorder(new BevelBorder(BevelBorder.LOWERED));
    p1.setBorder(new BevelBorder(BevelBorder.LOWERED));
    tedir.setBackground(Color.white);
    tedir.setText("te");
    tedir.setForeground(Color.blue);
    tedir.setColumns(15);
    getContentPane().setLayout(new BorderLayout());
    p.add(tedir,"North");
    lis=new java.awt.List(10);//dir
    lis.addActionListener(new RECOV());
    lis.addKeyListener(new ressolver());
    //lis.addMouseListener(new ressolver2());// yet to be debugged
    p.add(lis,"South");
    tefile=new JTextField();
    tefile.setForeground(Color.blue);
    tefile.setColumns(15);
    p1.add(tefile,"North");
    lis1=new java.awt.List(10);//files
    lis1.addKeyListener(new ressolver1());
    //lis1.addMouseListener(new ressolver3());// yet to be debugged
    p1.add(lis1,"South");
    if(ab==(null)){
    tfpath.setText("");
    File f[]=File.listRoots();
    for(int i=0;i<f.length;i++)
    lis.add((f[i].toString()));
    else if(ab!=(null)){
    tfpath.setText(ab);
    File f1=new File(ab);
    if((f1.exists())==true)
    String s[]=f1.list();
    for(int j=0;j<s.length;j++)
    File f2=new File(f1+"/"+s[j]);
    if(f2.isDirectory())
    byte b[]={92};
    String s0s=new String(b);
    lis.add(s[j]+s0s);
    else
    if(s[j].endsWith(tellf))
    lis1.add(s[j]);
    else
    JOptionPane.showMessageDialog(getContentPane(),"DRIVE NOT ACCESSABLE","DRIVE ERROR",JOptionPane.ERROR_MESSAGE);
    else{
    p7.add(p2,"North");
    p7.add(p4,"Center");
    p7.add(p1,"East");
    p7.add(p,"West");
    JPanel p8=new JPanel();
    p8.setLayout(new GridLayout(4,1));
    singledir=new JRadioButton(" singleDirectory FILTER ");
    p8.add(singledir);
    multiplefile = new JRadioButton(" Multiplefile FILTER ");
    p8.add(multiplefile);
    multipledir = new JRadioButton(" Multipledir FILTER ");
    p8.add(multipledir);
    JRadioButton saveP = new JRadioButton(" save Panel ");
    p8.add(saveP);
    ButtonGroup group1 = new ButtonGroup();
    group1.add(multipledir);
    group1.add(multiplefile);
    group1.add(singledir);
    group1.add(saveP);
    multipledir.addActionListener(new muldirfil());
    multiplefile.addActionListener(new mulfilfil());
    singledir.addActionListener(new singledirfil());
    saveP.addActionListener(new savep());
    getContentPane().add(p8,"East");
    getContentPane().add(p7,"West");
    pack();
    show();
    // Thread.sleep(20000);
    }catch(Exception re)
    {System.out.println(re);JOptionPane.showMessageDialog(getContentPane(),"an exception occcured"+re.getMessage(),"EXCEPTION",JOptionPane.ERROR_MESSAGE);}
    public class sorter implements ActionListener
    public void actionPerformed(ActionEvent e)
    java.util.List l=new ArrayList();
    java.util.List l1=new ArrayList();
    String ss[]=lis.getItems();
    for(int y=0;y<ss.length;y++){
    l.add(ss[y]);
    String ss1[]=lis1.getItems();
    for(int y=0;y<ss1.length;y++){
    l1.add(ss1[y]);
    Collections.sort(l);
    Collections.sort(l1);
    int a=l.size();
    int a1=l1.size();
    lis.removeAll();
    for(int y=0;y<a;y++){
    lis.add((String)l.get(y));
    lis1.removeAll();
    for(int y=0;y<a1;y++){
    lis1.add((String)l1.get(y));
    public class savep implements ActionListener
    public void actionPerformed(ActionEvent e)
    tfsave.setEditable(true);
    public class ketsave extends KeyAdapter
    public void keyPressed(KeyEvent e)
    if((e.getKeyCode())==KeyEvent.VK_ENTER)
    ab=tfpath.getText();
    ac=tfsave.getText();
    setDirectoryName(ab);
    setFileName(ac);
    String sw=getDirectoryName();
    String g3=getFileName();
    // System.out.println(sw+g3);
    public class ressolver1 extends KeyAdapter
    public void keyPressed(KeyEvent e)
    setEnterKeyStateName(false);
    try{
    synchronized(c)
    c.notifyAll();
    c.removnot();
    }catch(Exception q){System.out.println(c+"   "+q);}
    lis.removeAll();
    if((e.getKeyCode())==KeyEvent.VK_ENTER)
    ab=tfpath.getText();
    String ss[]=lis1.getSelectedItems();
    int r=ss.length;
    // System.out.println(ab);
    setDirectoryName(ab);
    if(r>1)
    setFiles(ss);
    else if(r==1)
    setFileName(ss[0]);
    else
    setEnterKeyStateName(true);
    String sw=getDirectoryName();
    String g5[]=getFiles();
    String g3=getFileName();
    for(int y=0;y<g5.length;y++)
    // System.out.println("selected File's are >>>>>> "+sw+g5[y]);
    // System.out.println("selected File is >>>>>> "+sw+g3);
    public class ressolver3 extends MouseAdapter
    public void mouseClicked(MouseEvent e)
    setEnterKeyStateName(false);
    try{
    synchronized(c)
    c.notifyAll();
    c.removnot();
    }catch(Exception q){System.out.println(c+"   "+q);}
    lis.removeAll();
    if((e.getClickCount())==3)
    ab=tfpath.getText();
    String ss[]=lis1.getSelectedItems();
    int r=ss.length;
    // System.out.println(ab);
    setDirectoryName(ab);
    if(r>1)
    setFiles(ss);
    else if(r==1)
    setFileName(ss[0]);
    else
    setEnterKeyStateName(true);
    String sw=getDirectoryName();
    String g5[]=getFiles();
    String g3=getFileName();
    for(int y=0;y<g5.length;y++)
    // System.out.println("selected File's are >>>>>> "+sw+g5[y]);
    // System.out.println("selected File is >>>>>> "+sw+g3);
    public class ressolver2 extends MouseAdapter
    public void mouseClicked(MouseEvent e)
    setEnterKeyStateName(false);
    lis1.removeAll();
    try{
    synchronized(c)
    c.notifyAll();
    c.removnot();
    }catch(Exception q){System.out.println(c+"   "+q);}
    if((e.getClickCount())==3)
    ab=tfpath.getText();
    String ss[]=lis.getSelectedItems();
    for(int y=0;y<ss.length;y++)
    ss[y]=(ab+ss[y]);
    //System.out.println(ss[y]);
    int r=ss.length;
    if(r>1)
    setDirectorys(ss);
    else if(r==1)
    setDirectoryName(ss[0]);
    } else{}
    setEnterKeyStateName(true);
    String sw=getDirectoryName();
    String g5[]=getDirectorys();
    for(int y=0;y<g5.length;y++)
    // System.out.println("selected dir's are >>>>>> "+g5[y]);
    //System.out.println("selected dir is >>>>>> "+sw);
    try{
    synchronized(c)
    c.notifyAll();
    c.removnot();
    }catch(Exception q){System.out.println(q);}
    public class ressolver extends KeyAdapter
    public void keyPressed(KeyEvent e)
    setEnterKeyStateName(false);
    lis1.removeAll();
    try{
    synchronized(c)
    c.notifyAll();
    c.removnot();
    }catch(Exception q){System.out.println(c+"   "+q);}
    if((e.getKeyCode())==KeyEvent.VK_ENTER)
    ab=tfpath.getText();
    String ss[]=lis.getSelectedItems();
    for(int y=0;y<ss.length;y++)
    ss[y]=(ab+ss[y]);
    //System.out.println(ss[y]);
    int r=ss.length;
    if(r>1)
    setDirectorys(ss);
    else if(r==1)
    setDirectoryName(ss[0]);
    } else{}
    setEnterKeyStateName(true);
    String sw=getDirectoryName();
    String g5[]=getDirectorys();
    for(int y=0;y<g5.length;y++)
    // System.out.println("selected dir's are >>>>>> "+g5[y]);
    //System.out.println("selected dir is >>>>>> "+sw);
    try{
    synchronized(c)
    c.notifyAll();
    c.removnot();
    }catch(Exception q){System.out.println(q);}
    public class keylis extends KeyAdapter
    public void keyPressed(KeyEvent e)
    if((e.getKeyCode())==KeyEvent.VK_ENTER){
    lis.removeAll();
    lis1.removeAll();
    File d=new File(tfpath.getText());
    File f1=new File(d.toString());
    if((f1.exists())==true)
    String s[]=f1.list();
    for(int j=0;j<s.length;j++)
    File f2=new File(f1+"/"+s[j]);
    if(f2.isDirectory())
    byte b[]={92};
    String s0s=new String(b);
    lis.add(s[j]+s0s);
    else
    if((s[j].endsWith(tellf))&&((s[j].indexOf("$"))==-1))
    lis1.add(s[j]);
    else
    JOptionPane.showMessageDialog(getContentPane(),"DRIVE NOT ACCESSABLE","DRIVE ERROR",JOptionPane.ERROR_MESSAGE);
    public class C implements ItemListener
    public void itemStateChanged(ItemEvent e)
    int ss=e.getStateChange();
    if(ss==1){
    tfpath.setEditable(true);
    tfpath.addKeyListener(new keylis());
    tfpath.setToolTipText(" Write The Dir And Only The Dir");
    else{
    tfpath.setEditable(false);
    public class mulfilfil implements ActionListener
    public void actionPerformed(ActionEvent e)
    tacle=2;
    tfsave.setEditable(false);
    lis.setMultipleMode(false);
    lis.removeKeyListener(new ressolver());
    lis1.setMultipleMode(true);
    static int tacle=1;
    public class muldirfil implements ActionListener
    public void actionPerformed(ActionEvent e)
    tacle=3;
    tfsave.setEditable(false);
    lis.setMultipleMode(true);
    lis1.removeKeyListener(new ressolver1());
    lis1.setMultipleMode(false);
    lis.removeAll();
    lis1.removeAll();
    File d=new File(tfpath.getText());
    File f1=new File(d.toString());
    if((f1.exists())==true)
    String s[]=f1.list();
    for(int j=0;j<s.length;j++)
    File f2=new File(f1+"/"+s[j]);
    if(f2.isDirectory())
    byte b[]={92};
    String s0s=new String(b);
    lis.add(s[j]+s0s);
    else
    // if(s[j].endsWith(tellf))
    // lis1.add(s[j]);
    else
    JOptionPane.showMessageDialog(getContentPane(),"DRIVE NOT ACCESSABLE","DRIVE ERROR",JOptionPane.ERROR_MESSAGE);
    System.out.println();
    public class singlefilfil implements ActionListener
    public void actionPerformed(ActionEvent e)
    tfsave.setEditable(false);
    lis.removeKeyListener(new ressolver());
    lis1.removeKeyListener(new ressolver1());
    lis.setMultipleMode(false);
    lis1.setMultipleMode(false);
    tacle=1;
    public class singledirfil implements ActionListener
    public void actionPerformed(ActionEvent e)
    tfsave.setEditable(false);
    lis.removeKeyListener(new ressolver());
    lis1.removeKeyListener(new ressolver1());
    lis.setMultipleMode(false);
    lis1.setMultipleMode(false);
    lis.removeAll();
    lis1.removeAll();
    File d=new File(tfpath.getText());
    setDirectoryName(d.toString());
    File f1=new File(d.toString());
    if((f1.exists())==true)
    String s[]=f1.list();
    for(int j=0;j<s.length;j++)
    File f2=new File(f1+"/"+s[j]);
    if(f2.isDirectory())
    byte b[]={92};
    String s0s=new String(b);
    lis.add(s[j]+s0s);
    else
    // if(s[j].endsWith(tellf))
    // lis1.add(s[j]);
    else
    JOptionPane.showMessageDialog(getContentPane(),"DRIVE NOT ACCESSABLE","DRIVE ERROR",JOptionPane.ERROR_MESSAGE);
    tacle=4;
    System.out.println();
    public class RECOV1 implements ActionListener
    public void actionPerformed(ActionEvent e)
    String ss=lis1.getItem(lis1.getSelectedIndex());
    String sq=tfpath.getText();
    ab=sq;
    if(sq.equals(null))
    sq="";
    tefile.setText(ss);
    ac=ss;
    ss=sq+ss;
    public static String tellf="java";
    public class tellf implements ItemListener
    public void itemStateChanged(ItemEvent e)
    String ss=(String)e.getItem();
    tellf=ss;
    lis.removeAll();
    lis1.removeAll();
    File d=new File(tfpath.getText());
    File f1=new File(d.toString());
    if((f1.exists())==true)
    String s[]=f1.list();
    for(int j=0;j<s.length;j++)
    File f2=new File(f1+"/"+s[j]);
    if(f2.isDirectory())
    if(tacle==1){}
    else if(tacle==1){}
    else{}
    byte b[]={92};
    String s0s=new String(b);
    lis.add(s[j]+s0s);
    else
    if(tacle==1){}
    else if(tacle==1){}
    else{}
    if((s[j].endsWith(tellf))&&((s[j].indexOf("$"))==-1))
    lis1.add(s[j]);
    else
    JOptionPane.showMessageDialog(getContentPane(),"DRIVE NOT ACCESSABLE","DRIVE ERROR",JOptionPane.ERROR_MESSAGE);
    public class RECOV implements ActionListener
    public void actionPerformed(ActionEvent e)
    String ss=lis.getItem(lis.getSelectedIndex());
    String sq=tfpath.getText();
    if(sq.equals(null))
    sq="";
    tedir.setText(ss);
    ss=sq+ss;
    tfpath.setText(ss);
    lis.removeAll();
    lis1.removeAll();
    File d=new File(tfpath.getText());
    File f1=new File(d.toString());
    if((f1.exists())==true)
    String s[]=f1.list();
    for(int j=0;j<s.length;j++)
    File f2=new File(f1+"/"+s[j]);
    if(f2.isDirectory())
    byte b[]={92};
    String s0s=new String(b);
    lis.add(s[j]+s0s);
    else
    if((s[j].endsWith(tellf))&&((s[j].indexOf("$"))==-1))
    lis1.add(s[j]);
    else
    JOptionPane.showMessageDialog(getContentPane(),"DRIVE NOT ACCESSABLE","DRIVE ERROR",JOptionPane.ERROR_MESSAGE);
    public void setFiles(String[] bs)
    for(int i=0;i<bc.length;i++)
    bc[i]="";
    this.bc=bs;
    public void setDirectorys(String[] bs)
    for(int i=0;i<bb.length;i++)
    bb[i]="";
    this.bb=bs;
    public void setFileName(String bs)
    ac="";
    this.ac=bs;
    //System.out.println(ac);
    public void setDirectoryName(String bs)
    ab="";
    this.ab=bs;
    //System.out.println(ab);
    public String[] getFiles()
    //for(int i=0;i<bc.length;i++)
    //System.out.println("getf[] "+bc[i]);
    return bc;
    public String[] getDirectorys()
    for(int i=0;i<bb.length;i++)
    //System.out.println("getd[] "+bb[i]);
    return bb;
    public String getFileName()
    //System.out.println("get f "+ac);
    return ac;
    public void setEnterKeyStateName(boolean b)
    this.entkey=b;
    //System.out.println("getd "+ab);
    public boolean getEnterKeyStateName()
    //System.out.println("getd "+entkey);
    return entkey;
    public String getDirectoryName()
    //System.out.println("getd "+ab);
    return ab;
    public static checker1 c;
    public void plsShow()throws Exception
    synchronized(c)// for c.show
    c.wait();
    public void removnot()
    ch1.setVisible(false);
    ch1.dispose();
    public static checker1 ch1;
    public static void main(String args[])throws Exception
    if(ab==null){ab=null;}
    c=new checker1();
    ch1=c;
    c.plsShow();
    System.out.println(c.getEnterKeyStateName());
    if(c.getEnterKeyStateName()==true)
    System.out.println(c.getDirectoryName());
    System.out.println(c.getFileName());
    Runtime t=Runtime.getRuntime();
    Process p=t.exec("start "+c.getDirectoryName()+c.getFileName());
    System.out.println(c.getEnterKeyStateName());

  • Enable null values assignments in javascript..without stopping the program flow. Same code is ok in IE8

    I have the following code which is falling over in Firefox, while in other browsers like IE, Chrome and Opera is passing through even though the value in the array at that point of time is null.
    var vitemp = document.getElementById('F06_'+ij).value;
    In firefox, i get the error below.
    [18:59:35.747] TypeError: document.getElementById(...) is null @ http://
    How can i change the firefox parameters so as to be less strict for null value assignments ?

    Use code like this to test if that id exists.
    <pre><nowiki>var vi_id = document.getElementById('F06_'+ij);
    var vitemp = vi_id?vi_id.value:null;</nowiki></pre>

  • How to stop the waterflow?

    Hi,
    I need to make the water coming from the shower, when shower is clicked.
    And the water should stop after 5 seconds.
    The code is below.
    The water is flowing nicely. But I do not manage to stop it.
    I added a timer, which starts when the shower is clicked. And should stop the waterflow after 5 seconds have passed.
    With the lines
    if (stop = true)
         break;
         trace("break");
    it looks like the for loop is breaking right from the start, from the first second. But not completely, somehow 1 or 2 drops are flowing.
    Without these lines nothing is happening when the time is over (5 seconds from clicking the shower). Water is just flowing.
    Can someone help? How to stop the water flowing after 5 seconds and clean of the array and stage from the waterdrops?
    Many thanks in advance!
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var WatertropArray: Array = new Array();
    var WaterArea01: MovieClip = new WaterArea();
    var WaterBorder01: MovieClip = new WaterBorder();
    var timer: Timer = new Timer(5000, 1);
    var stopp: Boolean;
    var i: uint;
    Shower.addEventListener(MouseEvent.CLICK, waterFlowStart);
    function waterFlowStart(event: MouseEvent): void
                    addChild(WaterArea01);
                    WaterArea01.x = WaterArea00.x;
                    WaterArea01.y = WaterArea00.y;
                    WaterArea01.alpha = 0;
                    addChild(WaterBorder01);
                    WaterBorder01.x = WaterBorder00.x;
                    WaterBorder01.y = WaterBorder00.y;
                    WaterBorder01.alpha = 0;
                    stopp = false;
                    timer.addEventListener(TimerEvent.TIMER, waterFlowEnd);
                    timer.start();
                    addWaterdrops();
                    Shower.removeEventListener(MouseEvent.CLICK, waterFlowStart);
    function addWaterdrops(): void
                    for(var i: uint = 0; i < 100; i++)
                                   var waterDrop: MovieClip = new Waterdrop();
                                   addChild(waterDrop);
                                   waterDrop.x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                   waterDrop.y = Math.round(Math.random() * stage.stageHeight / 3);
                                   waterDrop.alpha = 0;
                                   waterDrop.rotation = -12;
                                   WatertropArray.push(waterDrop);
                                   trace("waterdrops added");
                                   moveWaterdrops();
    function moveWaterdrops(): void
                    waterDrop00.addEventListener(Event.ENTER_FRAME, waterFlow);
    function waterFlow(event: Event): void
                    for(var i: uint = 0; i < WatertropArray.length; i++)
                                   WatertropArray[i].y += 8;
                                   WatertropArray[i].x += 5;
                                   //trace(i);
                                   if(WatertropArray[i].hitTestObject(WaterArea01))
                                                   WatertropArray[i].alpha = Math.random();
                                                   WatertropArray[i].scaleX = Math.random();
                                                   WatertropArray[i].scaleY = WatertropArray[i].scaleX;
                                   if(WatertropArray[i].hitTestObject(WaterBorder01) || WatertropArray[i].x > stage.stageWidth || WatertropArray[i].y > stage.stageHeight / 2)
                                                   WatertropArray[i].x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                                   WatertropArray[i].y = Math.round(Math.random() * stage.stageHeight / 3);
                                                   WatertropArray[i].alpha = 0;
                                   if(stopp = true)
                                                   break;
                                                   trace("break");
    function waterFlowEnd(event: TimerEvent): void
                    trace("TIME OVER");
                    stopp = true;
                    stoppTrue();
    function stoppTrue(): void
                    for(var i: uint = WatertropArray.length; i > WatertropArray.length; i--)
                                   remove(i);
    function remove(idx: int)
                    removeChild(WatertropArray[idx]);
                    WatertropArray.splice(idx, 1);
                    trace("REMOVED");
                    removeChild(waterDrop00);
                    trace(i);

    thanks again, kglad.
    changed the for-loop and it is reaching now the last functions as well.
    but there is still a but  ... an error message.
    function waterFlowEnd(event: TimerEvent): void
    trace("TIME OVER");
    stopp = true;
    stoppTrue();                                                       // line 106
    function stoppTrue(): void
    for(var i: uint = WatertropArray.length-1; i >= 0; i--)
    trace("stoppTrue");
    remove(i);                                                         // line 115                                                    
    function remove(idx: int)
    removeChild(WatertropArray[idx]);                   // line 123
    WatertropArray.splice(idx, 1);
    trace("REMOVED");
    //removeChild(waterDrop00);
    trace(i);
    and the output panel gives the following (tested with 5 water drops, 5 items in array):
    TIME OVER
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at TitavannisinglisekeelneAS3_fla::MainTimeline/remove()[TitavannisinglisekeelneAS3_fla.Main Timeline::frame1:123]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/stoppTrue()[TitavannisinglisekeelneAS3_fla.M ainTimeline::frame1:115]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/waterFlowEnd()[TitavannisinglisekeelneAS3_fl a.MainTimeline::frame1:106]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    What is that error message trying to tell me?   

  • PSE remains active in background after exit. How can I stop the program completely?

    PSE remains active in background after exit. How can I stop the program completely?
    Is there any command line option to force PSE to stop completely after exiting the GUI?
    Opening the Windows Task Manager and killing the PSE process is not a solution!
    (Context: I want to start PhotoshopElementsEditor.exe from another program with an image filename as command line argument. This other program waits in background until PhotoshopElementsEditor.exe has finished and pops up again after that. Since PhotoshopElementsEditor.exe continues to run silently in background, the other program will never come back.)

    Hi - having the same problem with PSE process not ending on exit. Have you had any luck in resolving the issue?
    Any advice would be appreciated. TIA

  • How can I stop the program from going through all of the text previously put in.  It is making the process very slow.

    How can I stop the program from going through all of the text previously put in.  It is making the process very slow. 

    while True:
    and just indent everything else under it
    Ends when you press ^C.
    if you wish to have a way to break out of the loop, say, when you press enter at the VPC number without entering anything, add the following after your vpc input:
    if not vpc:
    break
    which will break out of the while loop and end your program.
    Last edited by buttons (2007-12-14 22:03:06)

  • How do I input data to a table on the front panel and stop the program immediatel​y as button is pressed?

    What should I do if I want to display on the front panel in real time the values from Polarizer #, P1, P2 and the last calculated value (P2/P1 * 100) called T% in a table or some graphical representation like that?  What would I have to do?  It could just be Polarizer # and T% if that would be simpler.  I just want to let the user know the values in a list, spreadsheet or table as they go.  One last thing is that I would like to be able to stop the program at any point in time as soon as the stop button is pressed.  As of now, when the button is pressed it goes through the iteration currently in progress and then one afterwards.  I want the program to end as soon as the stop button is pressed no matter what sequence it is.  What can I do to achieve this?  Could you give me an example or modify my program to show me this.
    Thanks,
    Steve
    Stephen Coward
    Northrop Grumman
    [email protected]
    Attachments:
    EPM2000 almost done.vi ‏50 KB

    Put a single frame sequence structure around your stop button and then wire from the error cluster going into the error handler to the edge of the sequence structure. Now your code will stop at the end of the current iteration. To see why this works, watch you code execute with execution highlighting turned on and review the section of the manual talking about "Dataflow".
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to stop the internal batch session

    Hi ,
    How to stop the internal batch session, which is triggered from the program.
    When I execute the program, there is an batch session, which starts processing in parallel with the program, and causes an error message for the program, so the further process is affected.
    I tried finding the session through the Transactions - SM35, SM37. However, I could find any session in my name.
    However, when I try thro SM04, I could find an session with the same error message. But I am not able to end the session.
    Pleas advise.
    Thanks,
    cartesian.

    Go through transaction SM50. In case you have more than one application server (transaction SM51 will show) you can also use SM66 which will show all running processes on all application servers.
    With SM50 you will only see the process running if it is running on the same application server you are logged on to.
    Mark the process and use menu 'Program/Session - End Session' or 'Process - End with or without Core'
    Hope that helps,
    Michael

  • How to stop the "minority report" type of personalized ads triggered by one's google search and appearing in the firefox browser?

    Please advise how to stop the "minority report" type of personalized advertising apparently triggered by one's google search and appearing in the firefox browser.
    == This happened ==
    Every time Firefox opened
    == a few months ago

    If another uses the computer with their own user account, everything
    is kept separate in each users folder. Only if someone used your account
    would that be an issue.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to stop the thread?

    Hi,
    How to stop the thread in java. This is my program.
    import java.net.InetAddress;
    public class ThreadPing extends Thread {
         ThreadPing(String pingIP)
              super(pingIP);
              start();
         public void run()
              try
              String pingIP = Thread.currentThread().getName();
              InetAddress inet = InetAddress.getByName(pingIP);
              Boolean get=inet.isReachable(1500);          
              if(get==true)
                   System.out.println(inet.getHostName());               
              }catch(Exception e)
         public static void main(String args[])
              for(int i=1;i<=100;i++)
                   String pingIP = "192.168.1."+i;
                   ThreadPing tp = new ThreadPing(pingIP);
    Thanks in advance.

    The simplest way to stop all the thread is to make all thread daemons and exit the program when you want them to stop.

  • How to stop the pdf reading record?

    How to stop the pdf reading record? I don't want my track record to be leave on the computer.

    Exactly what face reading program are you talking about? Did you download and install it?
    Also, please furnish relevant information: Mac model/year.

  • How to stop the Calendar from editing your input?

    How to stop the Calendar from editing your input?

    I am constantly finding that Calendar Version 8.0 thinks it knows what I want to type but it incorrectly takes numbers and days and times out of my input and changes my appointments. I hate this new supposedly "smart" feature. Even when I edit my event correctly a second or third time it rewrites my input incorrectly again. I have to use my iPhone to override the annoying editing on my mac. I am ready to find a new calendar program unless Apple allows users to input what they want without their information being incorrectly edited.

  • How to stop the spinning wheel?

    How to stop the spinning wheel?

    Back up your documents and everything else important to you, not that there is any reason to believe your hard disk may be failing, but the symptoms you describe may presage an impending disk failure, and you should have backups anyway.
    Boot OS X Recovery by holding ⌘ and r (two fingers) while you start your Mac. At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red.
    When it finishes restart your Mac and test again for operation. If it's still not behaving as you expect it should, please post the results of EtreCheck in accordance with the following instructions:
    Apple Support Communities contributor etresoft wrote a very useful app to quickly gather certain system information that may help point to a cause of this problem. Go to his website, download and run EtreCheck:
    http://www.etresoft.com/etrecheck
    Etrecheck will be in your Downloads folder. Open it from there. You may see the following dialog box:
    Click Open - etresoft contributes to this forum frequently and can be considered a trustworthy developer.
    It will take a moment to run as it collects its data.
    Copy and paste its output in a reply.
    Do not be concerned about anything that says "Problem" or "failed".
    EtreCheck was designed to remove any personal information (such as your computer's name and serial numbers) but if you see anything that looks like an email address or any other personal information that should not be divulged to others, please delete or obscure that information when you post the reply.
    When you are finished with EtreCheck, quit the program. It occupies very little space, and you can keep it or drag it to the Trash as you wish.

  • Anyone know how to stop the "activate" box from blocking usage of a perfectly legal copy of Ilisten? I want to help my dyslexic grandson and this box, including the activation code, keeps popping up, keeping me from using the software. I activated the pro

    Anyone know how to stop the "activate" box from blocking usage of a perfectly legal copy of Ilisten? I want to help my dyslexic grandson and this box, including the activation code, keeps popping up, keeping me from using the software. I activated the program and did a few profile building sessions, now it pops up each time I start the program, blocking me from using it. Help sure would be appreciated.
    Jay

    I looked at your post this morning and did not know enough to respond, other than to find out that links to iListen now go to newer, renamed software. Considering it's been nine hours with no response, I'm suspecting few people here have experience with that software. You could contact the current copmany that used to sell that package and see if they have any archived support info.
    BTW: please check you entry for "Mac OS" in your profile. It says iOS, which cannot run on an iMac. iOS is the system for phone and iPads but can't run on Mac computers. Do "About this Mac" from the Apple menu and see what it says about the OS version. Should look like this:
    If the "Processor" line says "Intel," you have a newer Mac than the old modles this forum covers; Intel iMac have their very own forum here:
    iMac (Intel)

Maybe you are looking for

  • Read Data from "virtual" Cube with different ConsUnit Hier. Version

    Dear all, I got a odd request. I need to load data from the virutal Reporting-Bapi Cube for a certain Data Version. This Version has been attached to a new consUnit Hierachy a few weeks ago. Now we get a request to read data in the past for units whi

  • SapScript Data is not printing in Address window

    Hi all,     I am having a problem regarding printing some values in a window of sapscript.It prints data in that window for some input and not for others input. The structure , which is being passed to this window is having values in print program al

  • Multiple instances of WL on the same box :several Ip addresses using the same port

    Hi all, I want to set up several instances of WL on the same server. These instances will be clustered. I am using Apache for the WebServer. Here the configuration I used: I first change the weblogic.conf file in Apache to set up the bridge.I restart

  • Enable NWDI in portal

    hi, I have ESS & MSS implementation project. ECC at back end & portal on front end. While installation i enable prepre for NWDI But while configuration track in change & deploy.  I am not able see CMS server also not able to see role ,user, groups in

  • Opening an exiting image with PS CS6

    Every time I open an image with my PS extenden edition CS6 the image is not completely shown, I have to or duplicate the layer (backgroud layer) or remove it out of background only than te image is completely displayed see example the problem is simi