How come this is giving me a error

When i declare the HTTPService(); object it gives me a error
when i do the showBusyCursor
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
var phpService:HTTPService = new HTTPService();
phpService.showBusyCursor = true;

Declare "global" vars outside methods, but you must
manipulate the vars inside methods. Also you were using the version
of HTTPService that does not have a showBusyCursor property (wish
someone could describe the difference between the two versions of
HTTPService):

Similar Messages

  • How come this program compiles?

    class Base
         Base()
              int i = 100;
              System.out.println(i);
    public class Pri extends Base
         static int i = 200;
         public static void main(String[] args)
              System.out.println(i);
              Pri p = new Pri();
    i get very confused here. in the main, the value of "i" will be printed to the standard output even before the class Pri is instantiated! how come this program can compile?
    your help will be very much appreciated.
    eileen2

    This is because your class Pri extends Base. Because you didn't specify any class Pri constructor, java automatilcally created a no-argument constructor of class Pri with a call to the superclass constructor Base(). You can validate this by adding another Base constructor with arguments and then removing the no-argument Base constructor. Pri() will not compile.

  • How come this sound only plays once?

    Here is a program that illustrates what I am doing:
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.sound.sampled.*;
    public class soundApp extends JFrame
        JButton button;                
        Clip clip;
        public soundApp()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setSize(300,300);
            File file = new File("tada.wav"); 
            try
                AudioInputStream audiosource = AudioSystem.getAudioInputStream(file);
                DataLine.Info info =
                    new DataLine.Info(Clip.class, audiosource.getFormat());
                clip = (Clip)AudioSystem.getLine(info);  
                clip.open(audiosource);
            catch(UnsupportedAudioFileException e){}
            catch(LineUnavailableException e){}
            catch(IOException e){}
            button = new JButton("Play sound");
            button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e){
                if(e.getActionCommand().equals("Play sound"))
                    clip.start();   //HERE IS WHERE I START IT....sorry for caps.
            Container contentpane = getContentPane();
            contentpane.add(button);
            setVisible(true);
      public static void main(String[] args)
          soundApp soundapp = new soundApp();
    }How come the clip only plays once?

    well the answer is simple, because once the clip will stop the sound will stop too. you have not used any loop or anything that shows that the clip should go on forever. you can give some condition like play the clip unless some other button is pressed or some othe action is performed or so on. just use while or any or iterative or conditional statement to get your ay out.

  • How come i keep getting a network error when trying to register my ipad for imessage?

    I am trying to register my new ipad to imessage, when i click on message it says to enter my apple id to autherize this ipad, so i do.... then it sits there for about 30-45 seconds and comes back with a pop up apple error saying "imessage activation - could not sing in. pealse cheack your network connection and try again"  and i am on Wifi and everything else works (with the exception of facetime which gives me the same error).  I live in IL, USA
    Thank you for your help!

    What you need to do is go into settings
    Then go to wifi
    Tap the blue arrow to the wifi you are connected to
    Tap forget network
    Retap the wifi you want
    Reinsert your wifi code if you have one

  • I am trying to delete an email. However, when I highlight it, the highlight turns a very dark blue and all I can do is undelete it! How come this happens?

    I am trying to delete an email. However, recently, when I highlight the email, the highlighted area turns a very dark blue and all I can do is undelete it. The "delete" sign at the top is not visible. What causes this to happen?

    I found this link for a similar problem someone had with a Lotus Notes account. I used it to resolve my issue with a different email account (basically followed the same steps, and then looked for the particular account I needed to delete)... hope it helps!
    http://aumja24-usa.blogspot.com/2010/10/iphone-removing-lotus-notes-traveler.htm l

  • When on phone, can't open screen to check text or other things without hanging up on call.How come this is happening

    If anyone knows how to fix this, please let me know.  I've only had the phone about two weeks now and this seems to be the only problem I am having.

        Let's get to the bottom of this aprylstarr! Did this just begin or did you experience this from purchase? Does anything happen if you press the menu button? Try enabling safe mode here http://vz.to/1dHYdbi test and share your results. Also please navigate to Settings>Accessibility>Check "Power button ends call" setting>Uncheck>Power the phone off/on and test. Please share. Thank you.
    TominqueBo_VZW
    Please follow us on Twitter @VZWSupport  

  • How come this doesn't work?

    for (i=0;i!=(row*col);i++){
    total+=parseFloat(eval("value"+(i+1)));
    trace(total);
    trace(parseFloat(eval("value"+(i+1))));
    total is a variable from a dynamic text box and the
    eval("value"+(i+1)) variables are from input text boxes. The
    trace(parseFloat(eval("value"+(i+1)))); displays the values entered
    in the input boxes correctly but the trace(total); displays NULL
    everytime.
    Variables row and col both = 2, and the input text values =
    random integer (entered by user).
    I'm probably missing something really stupid but i can't see
    what is wrong with this.

    Ah forget it, i just had to do total = 0; before hand, even
    though when i did this without using eval() it worked without
    having to be pre defined.

  • Why does this keep giving a parse error when trying to use JavaHelp

    I'm trying to get JavaHelp to integrate into my application, but when I call the code below I get the following error;
    javax.help.HelpSetException: Could not parse
    Got an IOException (null)
    Parsing failed for nullthe error is occuring at the line indicated;
         HelpSet helpSet;
         HelpBroker helpBroker;
         try
         URL url = new URL("file", "", -1, "file://C:/jh1.1.3/demos/hsjar/idehelp.jar");
         ClassLoader loader = new URLClassLoader(new URL[]{url});
         URL helpUrl = null;
         helpUrl = HelpSet.findHelpSet(loader, "IdeHelp.hs");
         helpSet = new HelpSet(loader, helpUrl);    // *** error here ***
         helpBroker = helpSet.createHelpBroker();
         helpBroker.enableHelpKey(rootPane, "top", helpSet);
         CSH.setHelpIDString(menuItem, "Help");
         helpBroker.enableHelpOnButton(menuItem, "Help", helpSet);
         catch (Exception ex)
         ex.printStackTrace();
         }helpURL never seems to take a value, always staying at null. Can anyone see what I'm doing wrong?
    Thanks

    Got it sorted. I had to create a CLASSPATH to the jar and then the hs reference worked fine. :D

  • How come this formula doesn't work :ARRONDI((Total Total des factures÷1.149749) ; 2) ???

    I need some help to understand basic formula please...

    I am guessing you mean this formula?
    ARRONDI((Total Total des factures÷1.149749) ; 2)
    since you are using the semicolon (";") as the argument delimiter you should be using the comma as the decimal.
    so try this:
    ARRONDI((Total Total des factures÷1,149749) ; 2)

  • How come this does not work?

    String str = null, gene="";
              int count = 0;
              boolean return_proteins=true;
         while (((str = in.readLine()) != null) && return_proteins ){
                             int index = str.indexOf("gi|");
                             if (index>-1)
                                  count++;
                                  gene = str.substring(index+3);
                                  System.out.println(str.substring(index+3));
                                  //System.out.println(str.substring(str.indexOf("VALIGN=\"TOP\">") + 13));
                                  //index = str.indexOf("(nr-Homo-sapiens)");
                                  //if (index>-1)
                                       //String valign = str.substring(index+17,str.indexOf("</TD>"));
                                       //System.out.println(str.indexOf("</TD>"));
                             StringTokenizer token = new
                             StringTokenizer(str,"gi|");
                             While (token.hasMoreTokens())
                             String subStr=token.nextToken();
                                  System.out.printIn(token.nextToken+"");
                                  outfile.write(count+":" + gene +": \n");
                   }

    Each line of the following part contains errors that shall prevent your code from being compiled:While (token.hasMoreTokens())
    String subStr=token.nextToken();
    System.out.printIn(token.nextToken+"");

  • How come this isn't working

    I try to run this but it won't work.
    cArray[0].scores[0] = (Double.valueOf(jtfQuiz2.getText())).doubleValue();
    I am using 0 for the indexes just to see if I can get something in them. Then I try to see if anything has been put in them by calling :
    jtfQuizAvg.setText(String.valueOf(cArray[0].scores[0]));
    I declared an array of 50 objects like this.
    CIS[] cArray = new CIS[50];
    I have a class (CIS) in a package that I have imported. I am trying to get the scores of the individual tests in to the scores[] array found in that class I have imported.
    CIS[] cArray = new CIS[50];
    Please please help me!

    Well, you don't say what your problem actually is, other than "it won't work", but one thing you should be aware of is thatCIS[] cArray = new CIS[50]; doesn't create an array of 50 CIS objects. Rather, it creates an array that can REFERENCE 50 CIS objects. You still have to create each object as you need it. So if you are getting a NullPointerException, that's because you needcArray[0] = new CIS(); before you use cArray[0].
    HTH
    Robin

  • Iso 6 how come this destroys your ipad wifi? how can you stay connected?

    Why do you lose your connection to wifi when you down load iso 6?

    Coq rouge wrote:
    NI is not making the Real Time OS in house. I do not remember which firm that is making it. Anyway you are allowed to use a hard drive that has been partitioned. And 126GB is some space is it not? I remember Bill Gates declared one time that 640Kb ram should be more than enough for any PC application also in the future 
    Coq Rouge (formerly t06afre),
    The RealTime OS is an NI Product that is purchased from NI.
    NI may or may not outsource design, developement, or manufacturing of the products that it sells under its own Company name.
    For this reason I would be concerned if I were a PXI Embedded Controller designer/developer in the United States. 
    Yes, 126GB is some space.  I see that there are now 2TB drives available.  126GB would be 6.3% of a new 2TB drive.  Should we all be happy with being able to use 6.3% of the available drive space.  Moore's Law seams to be alive and well.  Drives larger than 126GB have been readily available for 5 or 6 Years.  This should not be a surprise to NI.  Why don't they do something about it.
    Thanks for the trivia on Bill Gates.  I must have missed that one since I don't try to keep up with Microsoft.  I believe that he is a wonderful person and he and his family are doing wonders for the world in their "retirement".   The world needs more like him.
    What I do remember is Steve Jobs telling us that we would never need more that 128MB and that we would never to need to do anymore software development because everything was already in the "ToolBox".
    McKevin.  

  • How come my computer gives me an error "Unable to sync Unknown error"

    When I sync my IPOD Touch to my computer it gives me an error "Unable to sync, Unknown Error". I already updated my IPOD and it did not fix the problem. Anybody have any ideas?

    I forgot to add it was error 1319. Thx

  • I jailbroke my iphone 3gs but then removed all the data on it how come this takes soooo long?

    IT IS TAKING AGES TO REMOVE ALL DATA :(

    You jailbroke it,you figure it out!!!!!!!!
    Jailbreaking voids any warranty or any help from any one here.
    Good Luck!!!

  • How Come This Happened...?

    Hi all -
    Okay, I was using a program called XTorrent. I was downloading a file for work (yes, they use torrents for some reason although I suggested Dropbox). The downloads just hung but when I unplugged my tv they started. I haven't used the tv in a long time - I let it update to the newest version, but still - I'd like to be able to use my programs while it's on...
    Thanks all,
    Jon

    It may have found an update and started downloading it, or perhaps a sync of items to it was hogging network bandwidth?

Maybe you are looking for

  • OS X Server 3.0.1 VPN inconsistent

    I understand that many people have had trouble using their VPN Server since the 3.0 Server update with Mavericks.  I have NOT had trouble connecting my iMac (OS X 10.9 Mavericks) to the VPN Server here at work (Server 3.0.1, OS X 10.9 Mavericks), or

  • Long messages problem

    Hi all, When I send a short message (2 to 4 lines) on my iPhone 4S and I press the stand-by button while the message is still being sent, I hear the 'woosh' sound a few seconds later. So no problems for that. But when I send a longer message (10 line

  • Updating my podcast artwork?

    Hi there, We've recently updated our podcast artwork but not sure how to change it on iTunes? Our podcast is here: https://itunes.apple.com/gb/podcast/picturehouse-podcast/id393128786?mt=2 Our old artwork is hosted here: http://podcasts.simplicitypho

  • Short dump (CALL_FUNCTION_FORMAT_NOT_SUP) when testing RFC connection

    Hello! I'm trying to test a RFC connection through SM59, but I'm getting the following short dump: CALL_FUNCTION_FORMAT_NOT_SUP (RFC data format not supported). This RFC will connect to Biztalk, and this dump started occurring when Biztalk changed th

  • Disconnecting and reconnecting application modules

    Hi, Using JClient... jdev 9034 I have a need in my application to disconnect from current database and connect to a different database. The db schema is the same other db ... in my code I do something like 1. getPanelBinding().getApplicationModule().