Help for simple java question

May i know how to set the image .jpg or gif into the label ?
how to get the time in this format::Monday 12th Jan 2004
thanks

Hi,
If i want click the button then the image of the JLabel will be change.. how to write in syntax?
i know the c1 = new JLabel(new ImageIcon("sysImage/Send.gif"));
but i want another image after click command button.
is it c1.setImageIcon("abc.gif"); ? i try,but error..
how to apply the date fill into syntax? i not really know read the API
thanks

Similar Messages

  • Help for using java class in forms 9i

    hi
    i have been trying to use java class in forms9i but unable to execute ,i have encountered exceptions,for which exception handlers have been declared like ora_java.java_error and exception_thrown but failed to handle run time errors , i have tried all ways from my side.
    my java class returns a simple string
    i need help on various work arounds
    thanks in advance
    yash

    sir
    i have written a simple java class which returns a string hello imported using a java importer in forms 9i
    and i call my class in when button press trigger
    i have also imported java.lang.Exception for my exception handlers,i have no compile errors,but when i run my forms i get run time error and my exception handlers fail to trap it . ihave no idea how to proceed .
    should i use bean area in form and call the class using fbean from custom item rigger if so please explain
    can i get sample code example for calling a java class methods from forms.
    thanks
    yash

  • Help for a java Newbie please!

    Hey guys I'm writing this program for my Java 1 class I can't seem to get it complie. This is the first time we've worked with building out own classes. And I have a feeling that I'm doing something small and silly. If someone could just take a look at it I'd be more than happy.
    This is the Class we had to write it has 4 different fields of "employee information" This one looks fine.
    public class Employee
       private String name;           
       private int idNumber;      
       private String department;
       private String position;
       public Employee(String theName, int theIdNumber, String theDepartment,
                        String thePosition)
             name = theName;
             idNumber = theIdNumber;
             department = theDepartment;
             position = thePosition;
       public void setName( String theName )
             name = theName;
       public void setIdNumber( int theIdNumber )
                idNumber = theIdNumber;
       public void setDepartment( String theDepartment )
                department = theDepartment;
       public void setPosition( String thePosition )
                position = thePosition;
       public String getName()
                return name;
      public int getIdNumber()
                return idNumber;
      public String getDepartment()
                  return department;
      public String getPosition()
                 return position;
    } I think this one is good, it compiles just fine.
    Now we had to write a program that accesses the class and store "employee information" for 3 different employees and recall it. It only recalls for one right now, it doesn't compile though... sad day. Any help would be AMAZING THANKS in advanced.
    import javax.swing.JOptionPane;
    public class EmployeeInfo
       public static void main(String[] args)
           String firstEmployeeName = "Susan Meyers";
           String secondEmployeeName = "Mark Jones" ;
           String thridEmployeeName = "Joy Rogers";
           int firstEmployeeId = 47899;
           int secondEmployeeId = 39119;
           int thirdEmployeeId = 81774;
           String firstEmployeeDepartment = "Accounting";
           String secondEmployeeDepartment = "IT";
           String thirdEmployeeDepartment = "Manufacturing";
           String firstEmployeePosition = "Vice President";
           String secondEmployeePosition = "Programmer";
           String thirdEmployeePosition = "Engineer";
           Employee Employee1 = new Employee();
           Employee1.setName(firstEmployeeName);
           Employee1.setIdNumber(firstEmployeeId);
           Employee1.setDepartment(firstEmployeeDepartment);
           Employee1.setPosition(firstEmployeePosition);
           Employee Employee2 = new Employee();
           Employee2.setName(secondEmployeeName);
           Employee2.setIdNumber(secondEmployeeId);
           Employee2.setDepartment(secondEmployeeDepartment);
           Employee2.setPosition(secondEmployeePosition);
           Employee Employee3 = new Employee();
           Employee3.setName(thirdEmployeeName);
           Employee3.setIdNumber(thirdEmployeeId);
           Employee3.setDepartment(thirdEmployeeDepartment);
           Employee3.setPosition(thirdEmployeePosition);
           JOptionPane.showMessageDialog(null, "Name          ID Number   " +
                                         "Department      Position     /n" +
                                         Employee1.getName() + "   " +
                                         Employee1.getIdNumber() + "   " +
                                         Employee1.getDepartment() + "      /n");
      System.exit(0);
    }

    Also the compiling error I get is
    O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:28: cannot find symbol
    symbol  : constructor Employee()
    location: class Employee
           Employee Employee1 = new Employee();
                                   ^
    O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:39: cannot find symbol
    symbol  : constructor Employee()
    location: class Employee
           Employee Employee2 = new Employee();
                                   ^
    O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:50: cannot find symbol
    symbol  : constructor Employee()
    location: class Employee
           Employee Employee3 = new Employee();
                                   ^
    O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:52: cannot find symbol
    symbol  : variable thirdEmployeeName
    location: class EmployeeInfo
           Employee3.setName(thirdEmployeeName);
                                ^
    4 errors

  • Simple java question, help please

    please help
    -i am just starting out in java and im havin an early problem. Im trying to run a small java script from a commant prompt but im getting the following error after i enter this command at my prompt
    c:\javatest>javac HelloARP.java
    javac is not as an internal or external command, operable program or batch file.
    when i enter
    c:\java -version
    i get the following message: registry key software\javasoft\java runtime enviornment\current version has value of 1.1 but 1.4 is requiured
    error: could not find java.dll
    error: could not find java 2 runtime enviornment
    -im sure this is a simple error on my part. all im trying to do is run my first lil program that i saved in notepad, its only 5 lines long. here is the lil test program im trying to execute
    class HelloARP {
    public static void main (String[] arguments) {
    System.out.println("What's good ARP?");
    - all responses and help are welcomed. Thank you ahead of time for anyone that can help me get started.

    Hi
    First of all uninstall your current JDK installation, if you can get to the registry delete the registry entries for the old version of java which was there on your machine.
    Now do a fresh install of your j2sdk1.4.1, make sure that you will install the JRE with the J2SDK1.4.1.
    Once you are done, set your classpath in autoexec.bat if you are using Windows 95/98
    or set your environment variables if you are using Win NT/2000/XP.
    If using solaris or other unix flavors see the included installation instructions provided.
    Let me if you face the same problem.
    Thanks
    Swaraj

  • Simple Java Question 2

    hey everyone!
    im stuck, on the math part.
    i need to add a formula to my applet, x = y*z, for example. For fixed values of y and z. So lets say y = 5 and z= 3. How do i get "15" to be displayed when an applet is started.
    I have looked through java.math but did come across anything but complicated stuff.
    your help is very appreciated.

    int y = 5, z = 3;
    System.out.println(y*z); //prints out '15'This will be printed out to standard output (the shell), for an application.
    I'm not sure how you want to print this using your applet.
    But the main point is that simple maths can be done using operators on primitive data types (int, byte, short, double, long, ) Check out this important resource.
    I recommend you read the whole tutorial, or at least the following sections:
    Learning the Java Language
    Writing Applets
    Writing Swing Applets
    regards,
    lutha

  • Desperate need of HELP for a Java GUI !

    Hy people,
    I am working on a project trying to display a GUI where its output is dependant on the user's input.
    Here is a brief example of what Im trying to do:
    You have a GUI that contains 2 panels. buttonPanel and DisplayPanel.
    buttonPanel contains:
    a dropdown list: includes choices of colors,
    2 textfields: the length: (can enter from 1 to 100),
    the width: (can enter from 1 to 100),
    a checkbox: random
    and a start button.
    Now when I enter ALL the information needed in the components and then press start button, it should display its result in the DisplayPanel.
    In my case, I want to display just one rectangle to start off. That will have its color changed by the dropdown choice made. Now Im forgetting about the length and width textfield for now cause that will be incorporated for something else later on.
    I created a buttonLitener for the start button and an ItemListener for the dropDown List.
    I declared and drew a rectangle specific to the color chosen by the user in a class I created called DrawingCanvas that extends Canvas and that overrides the paint method.
    BUT My problem is that it does not display the rectangle I created in my DisplayPanel when I press on the Start button.
    I provided a screenshot of the GUI interface, and my 2 java files. Is someone brave enough to fix my problem or even tell me what Im doing wrong ?!
    ScreenShot:
    http://www.hybrid.concordia.ca/~boumbo/GUIProblem.jpg
    Java Files:
    http://www.hybrid.concordia.ca/~boumbo/GUI.zip]Java Files
    PLEASE I am not Amazing with Java, and pulling my hair out in figuring out my problem.
    Thank you.

    Seriously, look at the first reply in the following thread. It gives a pretty good idea of generally accepted good practices in the forum.
    http://forum.java.sun.com/thread.jspa?threadID=603683
    It is probably better to post code directly on the forum than to try to get people to take the extra steps to download, unzip, and compile your code. That way, they can just cut and paste to try to compile. Be sure to use [code][/code] tags to make your code easier to use. And, try to provide a small example of your problem if the code is very long or complex.
    Another piece of advice. Don't try to challenge the regulars in this forum to prove that they are smart enough, brave enough, whatever enough to tackle YOUR problem. The regulars here include software engineers, authors, and generally very smart and experienced people They don't need to prove themselves to anyone.
    What they want to see is that you have genuinely tried to understand your problem, rather than just running to the forum the first time you get a compiler error.
    You seem to have been working on this problem. Go ahead and create a test case that shows what the problem is. Quite frequently, just doing that will help you solve the problem yourself.
    Good luck.
    RD-R
    � {�
    Mon Mar 07 00:57:45 EST 2005
    Pseudo-random saying number 257 of 635
    For every complex problem, there is a solution that is simple, neat,
    and wrong.
                    -- Henry Louis Mencken

  • URL: newbie needs help with simple programming question!

    Hi everyone,
    Please direct me to a FAQ or other resource, or help me with this problem:
    I want to create a text field (or similar container) that contains both ordinary text AND a URL/hyperlink in it. For example, the following text might appear in the text field:
    "I have many _pictures_ from my vacation"
    where the word "pictures" is actually a hyperlink to a web site, and the other portions of the string are simple text.
    All advice and help is appreciated!
    -Dennis Reda
    [email protected]

    Well here is one way you code do it but if you do alittle research on them links above it will explain how this code works.Well it will explain how jeditorpane and hyperlinklistener work
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.net.*;
    public class b extends javax.swing.JApplet implements HyperlinkListener  {
       JEditorPane field = new JEditorPane();
      public b() {
        Container pane = getContentPane();
        FlowLayout flo = new FlowLayout();
        pane.setLayout(flo);
        field.setPreferredSize(new Dimension(200, 25));
        field.setEditable(false);
        pane.add(field);
        setContentPane(pane);
         String gg1 = "<html><body>I have many_<a    href='http://www.home.com'>pictures</a>_from my vacation</body></html>";
         field.addHyperlinkListener(this);
         field.setContentType("text/html");
         field.setText(gg1);
      public void hyperlinkUpdate(HyperlinkEvent e) {
         if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
          try{
            URL url = new URL("http://www.msn.com");
            getAppletContext().showDocument(url,"_self"); 
            }catch(Exception r) {};
      public void init()  {
         b c = new b();
    ps hope this helped                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Simple java questions!

    Hi!
    Can someone tell me the answers of these questions, you can just bold the correct answer.Any help will be appreciated.
    Thanks in advance.
    Regards,
    sandy.
    1) Which of the following software components is not included in the standard Java SDK 2?
    (a)appletviewer(b)JMF(c)Jar tool(d)Swing(e)none of the above
    2) Which of the following is an abstract class in the Java API?
    (a)int (b)Integer (c)WindowListener (d)WindowAdapter (e)none of the above
    3) Which of the following types can be stored in a TreeMap?
    (a)int (b)boolean (c)char (d)String (e)none of the above
    4) How many main methods are allowed in a java program which comprises four user-defined classes?
    (a)one (b)two (c)three (d)four (e)none of the above.
    **********************************************************************

    about that main methods: i find it strange that only 1 main method is allowed, i would say: alot :)
    Just to give an example of the possibilities:
    public class Main {
      public static void main (String[] args) {}
      public static void main (int i) {}
      public void main() {}
      public void main (int i, String blah) {}
    }All is allowed, only the
    public static void main (String[] args) {}will be used as the startup method for the program.
    So in other words, that question not complete.
    Greets,
    Barre

  • Need help for downloading java at mac book retina

    i want to download java at my mac book pro retina but everytime we downloaded its not working..i need this because im going to use it to open my bank account...everytime i gonna check my bank account i need to use another computer not this my mac.why?? can you help me please.

    Banks do NOT use Java-in-a-Browser for anything, at all. If you have received a suggestion to conduct banking with JAVA enabled in your Browser, someone is attempting to commit a crime, with you as the intended victim.  You are being scammed and should report it to the Police.

  • Help!  Simple Java Program.

    Here is the problem: Write a program that creates a loan amortization table. The user of the program will supply values for Initial Loan Principal, Annual Percentage Rate and Monthly Payment. The program should print out the appropriate amortization table including the number of Monthly Payments and the Total Interest paid for the life of the loan. The program should allow multiple
    runs (up to 4 different versions) of the table process and should allow the
    user to compare runs in a tabular format.
    This is what I have so far and should work one I completely debug it. I am really new to Java, and I thinks it is somthing to do with the Array. I recently switched from C++ to Java, so I don't think I have the syntax down correctly. Thanks.
    import javax.swing.JOptionPane;
    public class Program_01
         public static void main(String [] args)
              int Runs;
              do{
                        String Run_Question = JOptionPane.showInputDialog(null, "How many times,would you like to run" + 
                        " the program? (Up to four runs only!)", "Run Question", JOptionPane.QUESTION_MESSAGE);
                         Runs = Integer.parseInt(Run_Question);
                        if( Runs < 0 || Runs > 4)
                             JOptionPane.showMessageDialog(null, "The number is not valid, try again!", "Error",
                             JOptionPane.INFORMATION_MESSAGE);
                   }while(Runs < 0 || Runs > 4);
                   Questions(Runs);
         public static void Questions(int Runs)
              for(int index = 0;index < Runs;index ++)
                   String Loan_Principle_String = JOptionPane.showInputDialog(null, "What is the Loan Principle?", "Loan Amount",
                                                         JOptionPane.QUESTION_MESSAGE);     
                   String Percentage_Rate_String = JOptionPane.showInputDialog(null, "What is the Annual Percentage Rate?",
                                                           "Interest Rate", JOptionPane.QUESTION_MESSAGE);
                   String Monthly_Payment_String = JOptionPane.showInputDialog(null, "What is the Monthly Payment", "Payment",
                                                           JOptionPane.QUESTION_MESSAGE);
                   double Loan_Principle = Double.parseDouble(Loan_Principle_String);
                   double Percentage_Rate = Double.parseDouble(Percentage_Rate_String);
                   double Monthly_Payment = Double.parseDouble(Monthly_Payment_String);
                   Calculate(Loan_Principle, Percentage_Rate, Monthly_Payment);
         public static void Calculate (double Loan, double Percentage, double Monthly)
              double[] Principle = new double[]{0,0};
              double[] Interest = new double[]{0,0};
              double[] Remain = new double[]{0,0};
              double Monthly_Percent = Percentage/12;
              double MPR = ((int)((Monthly_Percent + .005) * 100.) / 100.);
              boolean Over = true;          
              double Borrowed = Loan;          
              int Month = 0;
              for (int index = 0; Over != false; index++)
                   double Rate = MPR * Loan;
                   double decimalRate = ((int)((Rate + .005) * 100.) / 100.);
                   Interest[index] = decimalRate;
                   double Prince = Monthly - decimalRate;
                   double decimalPrince = ((int)((Prince + .005) * 100.) / 100.);
                   Principle[index]= decimalPrince;
                   double Rmn = Borrowed - decimalPrince;
                   Borrowed = Rmn;
                   double decimalRmn = ((int)((Rmn + .005) * 100.) / 100.);
                   Remain[index] = decimalRmn;
                   if(Monthly > Remain[index] && Remain[index] > 0)
                        Monthly = Remain[index];
                        Over = false;
                   Month += 1;
              System.out.println("I am here!" + Month);
              System.out.println("Payment #" + " " + "Principle" + " " + "Payment" + " " + "APR" + " " + "MPR" +
               " " + "Interest Payment" + " " + "Principle Payment");
              System.out.println("------------------------------------------------------------------------");
              for(int index = 0; index < Month; index++)
                   System.out.println((index + 1) + "\t" + Remain[index] + "\t" + Percentage + "\t" + MPR + "\t" + Interest[index]
                    + "\t" + Principle[index]);
    }

    Okay, here is my updated code. I am having trouble outputting my formate to align with each category.
    import javax.swing.JOptionPane;
    import java.text.DecimalFormat;
    public class Program_01
         public static void main(String [] args)
              int Runs;
              do
                   String Run_Question = JOptionPane.showInputDialog(null, "How many times would you like to run" + 
                   " the program? (Up to four runs only!)", "Run Question", JOptionPane.QUESTION_MESSAGE);
                    Runs = Integer.parseInt(Run_Question);
                   if( Runs < 0 || Runs > 4)
                        JOptionPane.showMessageDialog(null, "The number is not valid, try again!", "Error",
                        JOptionPane.INFORMATION_MESSAGE);
              }while(Runs < 0 || Runs > 4);
                   Questions(Runs);
         public static void Questions(int Runs)
              for(int index = 0;index < Runs;index ++)
                   String Loan_Principle_String = JOptionPane.showInputDialog(null, "What is the Loan Principle?", "Loan Amount",
                                                         JOptionPane.QUESTION_MESSAGE);     
                   String Percentage_Rate_String = JOptionPane.showInputDialog(null, "What is the Annual Percentage Rate?",
                                                           "Interest Rate", JOptionPane.QUESTION_MESSAGE);
                   String Monthly_Payment_String = JOptionPane.showInputDialog(null, "What is the Monthly Payment", "Payment",
                                                           JOptionPane.QUESTION_MESSAGE);
                   double Loan_Principle = Double.parseDouble(Loan_Principle_String);
                   double Percentage_Rate = Double.parseDouble(Percentage_Rate_String);
                   double Monthly_Payment = Double.parseDouble(Monthly_Payment_String);
                   Calculate(Loan_Principle, Percentage_Rate, Monthly_Payment);     
         public static void Calculate (double Loan, double Percentage, double Monthly)
              double[] Principle = new double[100];
              double[] Interest = new double[100];
              double[] Remain = new double[100];
              double[] Payment = new double[100];
              DecimalFormat Decimal = new DecimalFormat(".00");
              double Total_Interest = 0;
              double T_Interest;          
              double Monthly_Percent = (Percentage/12)/100;
              double MPR = Monthly_Percent;
              boolean Over = true;          
              double Borrowed = Loan;
              double Deposit = Monthly;          
              int Month = 0;
              for (int index = 0; Over = true; index++)
                   double Rate = MPR * Borrowed;
                   double decimalRate = round(Rate,2);
                   Interest[index] = decimalRate;
                   Remain[index] = Borrowed;
                   Month += 1;     
                   if(Monthly > Remain[index ] && Remain[index ] > 0)
                        for(int count = 0; count <= Month; count++)
                             Total_Interest += Interest[count];     
                        T_Interest = round(Total_Interest,2);
                        Payment[index] = T_Interest;
                        Deposit = T_Interest;     
                   else
                        Payment[index] = Deposit;     
                   double Prince = Deposit - decimalRate;
                   double decimalPrince = round(Prince,3);
                   Principle[index]= decimalPrince;
                   System.out.println("I am here!" + decimalPrince);
                   double Rmn = Borrowed - decimalPrince;
                   double decimalRmn = round(Rmn,2);
                   Borrowed = decimalRmn;
                   if(Monthly > Remain[index ] && Remain[index ] > 0)
                        Over = false;
                        break;
              System.out.println("Payment #" + " " + "Principle" + " " + "Payment" + " " + "Percentage" + " " + "MPR" +
               " " + "Interest Payment" + " " + "Principle Payment");
              System.out.println("----------------------------------------------------------------------------");
              for(int index = 0; index < Month; index++)
                   System.out.println("   " + (index + 1) + "\t   " + Decimal.format(Remain[index]) + "   " +
                   Decimal.format(Payment[index]) + "   " + Decimal.format(Percentage) + "     " + MPR +
                   "\t" + Decimal.format(Interest[index]) + "\t\t" + Decimal.format(Principle[index]));     
              T_Interest = ((int)((Total_Interest + .005) * 100.) / 100.);
              System.out.println("\n\t\t\t" + "Total Interest Paid \t" + T_Interest + "\n");
              for(int index = 0; index < Month; index++)
                   System.out.printf("%f %f\n", Principle[index],Remain[index]);
         public static double round(double val, int places) {
         long factor = (long)Math.pow(10,places);
         // Shift the decimal the correct number of places
         // to the right.
         val = val * factor;
         // Round to the nearest integer.
         long tmp = Math.round(val);
         // Shift the decimal the correct number of places
         // back to the left.
         return (double)tmp / factor;
    }

  • Please help. Simple Socket Question

    Hi. I am writing the basics for a game. Simple. I have a few classes, 1 of which is for connecting and another in which each user inherits a new copy as they join, it contains all their personal variables.
    By having their socket address, how can I access a specific instance of that file?
    Thanks for any help.

    Hi. I am writing the basics for a game. Simple. I
    have a few classes, 1 of which is for connecting and
    another in which each user inherits a new copy as
    they join, it contains all their personal variables.
    By having their socket address, how can I access a
    specific instance of that file?Specific instance of what file? Sockets connect processes to other processes, not to files.

  • NEWBIE: help with simple JSF question

    Hi, I'm having trouble wrapping my head around how JSF is supposed to be used for something.
    Let's say I have a list of people on the left, and I want to show the selected person in an editor on the right (so you can change the name and phone number and click 'save changes', for example).
    So I have a <h:selectOneListbox> with a <f:valueChangeListener>. Something like this:
    <h:selectOneListbox value="#{personController.selectedPerson}">
    <f:selectItems value="#{personController.listOfPersons}" />
    <f:valueChangeListener type="PersonSelectionListener" />
    </h:selectOneListbox>
    So in Java I have 2 objects.
    1. PersonController which maintains the list of persons and the selected person and is identified as a session bean in the faces-config.xml
    2. PersonSelectionListener which listens for selection changes and does something with the selection, let's say it writes the selected person's name to a log file just for sake of example.
    My question is, when the PersonSelectionListener detects that a selection change has occurred, how should I get the selected person from the person controller so I can, say, write the name to a log file?
    (Note: I'm pretty sure I can make the PersonController and the PersonSelectionListener the same object and just reference the selectedPerson member variable -- but I'm trying to wrap my head around how objects are supposed to interact in a JSF application, so let's assume they have have to be separate objects.)
    Any information is greatly appreciated. Thanks!

    Normally I would tell you to inject the PersonController bean into the PersonSelectionListener bean as a managed property. Then drill into the bean to get the data you need.
    However, in this case you are dealing with a value change listener. Value change events are fired at the end of the Process Validations phase, before the Update Model Values phase. So in this case, the PersonController bean will not contain the selected person from the request. This is not a problem however, since the new value is passed via the ValueChangeEvent object.

  • Request help for Simple Itinerary (tricky one)

    Hi
    I am trying various scenarios for itineraries. I am stuck in simple itinerary solution where i have  my schema exposed as (request and reponse) web service and one itineray service to transform it and finally send it back to the WS response.
    I  tried including Offramp but i guess i will not be able to include the servicename, state, type properties. Can someone help me how i can create itineraries for such instances.
    I could able successfully complete the scenario where my schema exposed as web service and then transform and invoke another web service and finally the response of the second web service for sent back my original web service. But the above simple scenario
    i am totally baffled.
    ram

    There are samples inside the ESB Toolkit that show exactly how to invoke a service  using the ESB Toolkit. You can find the specific
    sample here: C:\Program Files\Microsoft BizTalk ESB Toolkit 2.0\ESBSource\Source\Samples\MultipleWebServices. You will have to first unzip the ESBSource.zip file that comes with the default ESB toolkit installation.
    There are also How-to's which are step by step instructions on how to do this inside the ESB documentation.  You can get the documenation here:
    http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=bc86cf1e-ef29-4b19-95f7-388f64555090 
    Inside the Documentaion under Development Activities there are How-to's which provide step by step instructions on how to Route messages to a Service. (Even though this how to is based off of ASMX, the same principal applies.)
    You can also look into earlier MSDN Post in below link
    Consume Web Service from ESB Toolkit 2.1
    Thanks
    Abhishek

  • Actionscript Help for Simple Button Events

    Hey everyone,
    I'm pretty new to flash and I think this is a fairly simple animation, but I'm not quite sure how to write out the action script for it. I have a website that has very similiar animations to www.cookstreet.net. I have shapes and text that fly in from the bottom when a button is clicked, but I want to get them to fly back out of the top of the screen when any other button is clicked before any new content loads back in from the bottom. What should I add to the action script to tell flash to first check and see if there is content loaded on the screen when a button is clicked, and if there is, to go to the animation that flies that content out of the top and then return to the animation of the new content coming in from the bottom? What I currently have set up for my buttons is:
    function handleClick( pEvent:MouseEvent):void
        if( pEvent.target == reel )
            gotoAndPlay("Reel");
        else if( pEvent.target == home)
            gotoAndPlay("Home");
        else if( pEvent.target == news)
            gotoAndPlay("News");
        else if( pEvent.target == film)
            gotoAndPlay("Film")
        else if( pEvent.target == about)
            gotoAndPlay("About")
        else if( pEvent.target == contact)
            gotoAndPlay("Contact")
    reel. addEventListener(MouseEvent .CLICK, handleClick );
    home. addEventListener(MouseEvent .CLICK, handleClick );
    news. addEventListener(MouseEvent .CLICK, handleClick );
    film. addEventListener(MouseEvent .CLICK, handleClick );
    about. addEventListener(MouseEvent .CLICK, handleClick );
    contact. addEventListener(MouseEvent .CLICK, handleClick );
    Thanks for the help!
    -Sofi

    What you can probably do is have a variable that you use to keep track of who's present on the stage, starting it off as a null value.  That way when you click a button if the value is null is skips processing a moving out scenario and jumps to the moving in one.  So your event listeners would be calling a different handler function that first takes care of the moving out needs, if any, which in turn calls the moving in function after the moving out activity is done (or the timeline for moving out does... I don't know how you plan to implement the moving out stuff).  If it is a functiob to function process, the moving out function could pass the event.target to the moving in function so that wouldn't have to change at all, except to add in somewhere wha the new variable value should be.
    If what I just offered is one big ball of confusion... take your time and inch your way thru it.

  • Need emergency help for simple actionscript commands.

    I havent touched flash for awhile and am now using flash professional to try and create a simple visual prop.
    I used to be able to have the movieclip stop on the first frame and then use the keyboard (anykey) to advance frame by frame in the timeline. Now I cant seem to do it and it just keeps playing through and loops in the publish preview.
    As this is now actionscript 3, Im not familiar with how this is being controlled.
    Help would be greatly appreciated as I have to get this out the door tomorrow.
    JM

    See the following posting: I'D LIKE TO CHANGE MY CODE FROM USING THE LEFT KEY=PREVIOUS FRAME/ RIGHT KEY= NEXT FRAME TO  ANY KEY=NEXT FRAME. HERE IS MY CODE.
    The difference with yours would be that instead of using nextFrame(); inside the function, yours would just use play();

Maybe you are looking for

  • Problem in Loading Data from SQL Server 2000 to Oracle 10g

    Hi All, I am a university student and using ODI for my final project on real-time data warehousing. I am trying to load data from MS SQL Server 2000 into Oracle 10g target table. Everything goes fine until I execute the interface for the initial load

  • Is there any possible way to run PPC applications on Mountain Lion?

    THrough any kind of emulation or something?

  • Install RAC  using vmware

    Hi, I am trying to install RAC 10g using vmware . I have windows vista 64bit as host OS. Now the problem i am facing during installation of vmware . if i try to install vmware server it's not being installed on vista as its not been supported by vist

  • I have some problems with work in Flash cs6

    I have some problem with my game when I created it using adobe flash cs6 When the duck hits the screen, like from right to left it shows TypeError: Error #1009: Cannot access a property or method of a null object reference.   at Duck/ducksmove()   at

  • Developer version of Oracle for Linux

    I am currently enrolled in a class here at ISU where I am working with an off-campus company to develop a better user database for them. They run Oracle, but we must mirror their system on one of our machines to do the work. I was looking for a devel