Listening CustomEvents (Generated by Actionsctip Class) in MXML Classes

Hello Guys
I have some custom events, When i dispatch them from mxml classes (visually included in application), i can listen them.
But when i dispatch them some actionscript classes, i cant listen them, Any help?
Actually i have a custom class which loads the xml and after loading dispatch an event like "loading complete"
Any help?
Thanks

have you specified in the AS file that it dispatches your event???
[Event(name="loadingComplete", type="com.your.package.LoadingCompleteEvent")]

Similar Messages

  • How is the serialID generated in a class?

    How is the serialID generated in a class? Any info would be great. Does it use method names and length of the method etc??

    and also take note of highly sensitive to class details that may vary depending on compiler implementations, and can thus result in unexpected serialVersionUID conflicts during deserialization which is stated in the specification.
    So it may be a hash but the means used to determine that hash can vary between implementations.

  • When i generate abap sproxy, it doesn't generate the abap class.

    hi all :
    When i generate abap sproxy, it doesn't generate the abap class. can you tell me the reason and how to work out this issue? thanks
    Monson

    Monson,
    Check this weblog and see the steps whether you are doing right or not:
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Regards,
    ---Satish

  • Unable to generate a temporary class (result=1) cs2018: unable to find messages file 'cscompui.dll'

    hi
    i am getting this below error
    unable to generate a temporary class (result=1) cs2018: unable to find messages file 'cscompui.dll'

    Hi Damodar,
    >>unable to generate a temporary class (result=1) cs2018: unable to find messages file 'cscompui.dll'
    Before going further, which operating system this error occurred to? Besides, would you please also describe under what circumstances this error happened?
    Here, if this error happened on Windows Server 2008, we can try to install the following hotfix to see if it can solve the issue.
    Group Policy Preferences client-side extension hotfix rollup for Windows Server 2008
    https://support.microsoft.com/kb/2414013?wa=wsignin1.0
    If this error happened on Windows XP, Windows Server 2003, or Windows Vista, we can try to install the following hotfix to see if it can solve the issue.
    Group Policy Preferences Client-Side Extension Hotfix Rollup
    http://support.microsoft.com/kb/974266
    Best regards,
    Frank Shen

  • Unable to Generating a proxy class for the Enterprise Service

    Hi ,
    I  am trying to consuming an SAP  XI Web
    Service in Visual Studio 2005. I followd this document <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3057b5a7-99d0-2910-8f8f-f357dc4b70b5">Consume ES Workplace Enterprise Services with Microsoft .Net 2.0 and Visual Studio .Net 2005:</a>.
    While try to create a Proxy Class for the WSDL  file(XI)  using wsdl.exe tool it shows the error  like this "There is an error in XML document -Value cannot be null Parameter name:name".
    If there  any way to pass the parameter  through wsdl.exe tool .
    Regards,
    Malini.V

    Check for unnecessary spaces in the WSDL file. Especially in xsd:union tags.
    I had the following problem:
    <xsd:union memberTypes=" xsd:time genericTime" ...
    Correct:
    <xsd:union memberTypes="xsd:time genericTime" ...
    and WSDL.exe was able to generate the proxy class code.
    Kind regards
    Holger

  • Apt ant task suceeded but did not generate wrapper java/classes

    Hi,
    This is the first time I use apt task. Could someone help me out here.
    Thanks.
    Ant build suceeded but did not generate wrapper java/classes. Warning message I got is
    [apt] warning: Bad annotation processor factory: java.lang.ClassCastException: com.sun.istack.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory
    [apt] warning: Bad annotation processor factory: java.lang.ClassCastException: com.sun.istack.internal.ws.AnnotationProcessorFactoryImpl cannot be cast to com.sun.mirror.apt.AnnotationProcessorFactory
    [apt] warning: Annotation types without processors: [javax.jws.WebService]
    [apt] [total 725ms]
    [apt] 3 warnings
    I turned on verbose="true" and cut the command line apt -d .. -s ..
    from the ant build output.
    I executed that command line. Command suceeded, java/classes generated correctly. No warning
    <target name="run_apt" depends = "build_config_classes">
    <apt
         debug="true"
         verbose="true"
         destdir="${build_classes}"
    sourcedestdir="${apt.generated.dir}"
    sourcepath="${config.src}">
         <classpath refid="apt.classpath"/>
         <source dir="${config.src}">
         <include name="${config.pkg}/Configuration.java"/>
         </source>
    </apt>
    </target>

    try adding fork=true to apt task

  • Binding XML to java types generated using Oracle Class Gen

    Hi,
    how can you bind an XML to the java types generated using the class gen provided byOracle.
    I am using oracle 9i production. as part of my design, i have to read an xml input in my java class and use the contents to create some records and send a response xml back.
    The latter part of i can do as the java types provide setter methods to set the data and conversion to xml.
    Jaxb can be using to bind xml to java datatypes but its not supported in Oracle9i.
    What are the alternatives for achieving the same?
    Thanks
    Ashwin

    Hi Ashwin,
    This is a bit outside my area of expertise, but I did run an older version of TopLink in the Oracle database java VM a few years back so I'll base my advice on that. Hopefully other forum members can correct me if I steer you wrong.
    First you will need to set up your XML environment:
    I believe the Oracle 9i database includes a JDK 1.3 VM. You will first need to determine if the VM includes any JAXP APIs. I believe there is an SQL query that allows you to query the classes available in the VM. First check if javax.xml.parsers.DocumentBuilderFactory is present.
    If the JAXP APIs are already present in the database you will need to do the following. First load the class javax.xml.namespace.QName into the database. You can extract this from xmlparserv2.jar or from Suns Java Web Service Developer Pack jax-qname.jar. Then you will need to load the JAXB APIs. You can load xml.jar or jaxb-api.jar from Sun's JWSDP.
    If the JAXP APIs are not present you will need to load the 10.1.3 version of the XDK jars (these are shipped with the 10.1.3 TopLink install). Load xmlparserv2.jar and xml.jar into the database.
    Second you will need to setup your TopLink environment:
    Load toplink.jar into the database. If the JAXP APIs were already present and you didn't load the 10.1.3 XDK jars into the database you will need to set the following System property.
    toplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform-Blaise

  • JTextfield  listening for changes from other class

    Hi,
    Assuming I have a Jtextfield in one of the class1 extend Jframe,
    how do I update the jtextfield so that it could up make accessible by other class and continuously updated to reflect the input for value rom another class2.
    In other words very much similar to the observable model view concept
    class 1 may be look like
    private void initComponents() {
    jTextField1 = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jTextField1.setEditable(false);
    class 2 may be look similar to the following
    public void out_1(){
    setStop1("N");
    for (int i=1;i<100;i++){
    class_1.getJTextField1().setText(String.valueOf(i)); // System.out.println(i);
    setOuti(i);
    setStop1("N");

    HI,
    I have attempted with the following coding , test 1 the source display generated using Netbeans GUI , t est2 the worker code ,and mybean the bean , so far nothing seems to work .
    I have not try the threaded swing concept as I am not familar with the concurrency but i am not sure whether propertylistener will do the job or not
    In summary , list of method employed are :
    binding the jtextfield1 to a bean,
    jtextfield add document listener ,
    Coding objective
    1. Test 1 defined jtexfield1 and jbutton
    2 Jbutton added actionlistener , where upon click,
    Execute Test 2 which will assign a series of integer to the bean , own setters & getters, Output is achieved via Test 1 jtextfield1 supposingly to display all the running number from 1 to 99 continuously until the test2 out_1 method finished the execution
    Anyone could provide the assistance .
    Thank
    * Test_1.java
    * Created on July 25, 2007, 9:23 PM
    package sapcopa;
    import java.beans.PropertyChangeListener;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.Document;
    import sapcopa.MyBean.*;
    public class Test_1 extends javax.swing.JFrame {
    /** Creates new form Test_1 */
    // private Test_2 t2=new Test_2();
    private String input_txt;
    public Test_1() {
    myBean1=new MyBean();
    myBean1.addPropertyChangeListener(new java.beans.PropertyChangeListener(){
    public void propertyChange(java.beans.PropertyChangeEvent evt) {
    bean_chg(evt);
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
    myBean1 = new sapcopa.MyBean();
    jTextField1 = new javax.swing.JTextField();
    jTextField1.getDocument().addDocumentListener(new MyDocumentListener());
    jButton1 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jTextField1.setEditable(false);
    jTextField1.setText(myBean1.getRecord_Process());
    jTextField1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
    public void propertyChange(java.beans.PropertyChangeEvent evt) {
    txt1_chg(evt);
    jButton1.setText("jButton1");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    But1(evt);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(19, 19, 19)
    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addGroup(layout.createSequentialGroup()
    .addGap(32, 32, 32)
    .addComponent(jButton1)))
    .addContainerGap(131, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGap(21, 21, 21)
    .addComponent(jButton1)
    .addContainerGap(216, Short.MAX_VALUE))
    pack();
    }// </editor-fold>//GEN-END:initComponents
    private void txt1_chg(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_txt1_chg
    // TODO add your handling code here:
    //myBean1=new MyBean();
    try {
    jTextField1.setText(myBean1.getRecord_Process());
    } catch (Exception e){
    e.printStackTrace();
    }//GEN-LAST:event_txt1_chg
    private void bean_chg(java.beans.PropertyChangeEvent evt){
    jTextField1.setText(myBean1.getRecord_Process());
    private void But1(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_But1
    //getJTextField1().getDocument().addDocumentListener(new MyDocumentListener());
    Test_2 t2=new Test_2();
    t2.out_1();
    try{
    System.out.println("Button 1 mybean->"+myBean1.getRecord_Process());
    } catch (Exception e){
    e.printStackTrace();
    // TODO add your handling code here:
    }//GEN-LAST:event_But1
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Test_1().setVisible(true);
    public javax.swing.JTextField getJTextField1() {
    return jTextField1;
    public void setJTextField1(javax.swing.JTextField jTextField1) {
    this.jTextField1 = jTextField1;
    class MyDocumentListener implements DocumentListener {
    final String newline = "\n";
    public void insertUpdate(DocumentEvent e) {
    // updateLog(e, "inserted into");
    String vstr=myBean1.getRecord_Process().toString();
    jTextField1.setText(vstr);
    public void removeUpdate(DocumentEvent e) {
    //updateLog(e, "removed from");
    String vstr=myBean1.getRecord_Process().toString();
    jTextField1.setText(vstr);
    public void changedUpdate(DocumentEvent e) {
    //Plain text components don't fire these events.
    String vstr=myBean1.getRecord_Process().toString();
    jTextField1.setText(vstr);
    public void updateLog(DocumentEvent e, String action) {
    Document doc = (Document)e.getDocument();
    int changeLength = e.getLength();
    // jTextField1.setText(String.valueOf(changeLength));
    String vstr=myBean1.getRecord_Process().toString();
    jTextField1.setText(vstr);
    public String getInput_txt() {
    return input_txt;
    public void setInput_txt(String input_txt) {
    this.input_txt = input_txt;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JTextField jTextField1;
    private sapcopa.MyBean myBean1;
    // End of variables declaration//GEN-END:variables
    * Test_2.java
    * Created on July 25, 2007, 9:26 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package sapcopa;
    import sapcopa.MyBean.*;
    public class Test_2 {
    private Test_1 t1=new Test_1();
    private int outi;
    private String stop1;
    MyBean mybean;
    /** Creates a new instance of Test_2 */
    public Test_2() {
    public void out_1(){
    setStop1("N");
    mybean=new MyBean();
    for (int i=1;i<100;i++){
    mybean.setRecord_Process(String.valueOf(i));
    setOuti(i);
    setStop1("N");
    setStop1("Y");
    public int getOuti() {
    return outi;
    public void setOuti(int outi) {
    this.outi = outi;
    public String getStop1() {
    return stop1;
    public void setStop1(String stop1) {
    this.stop1 = stop1;
    * MyBean.java
    * Created on July 24, 2007, 12:00 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package sapcopa;
    import javax.swing.JTextField;
    public class MyBean {
    /** Creates a new instance of MyBean */
    public MyBean() {
    * Holds value of property record_Process.
    private JTextField txt_rec_process;
    private String record_Process;
    * Utility field used by bound properties.
    private java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this);
    * Adds a PropertyChangeListener to the listener list.
    * @param l The listener to add.
    public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
    propertyChangeSupport.addPropertyChangeListener(l);
    * Removes a PropertyChangeListener from the listener list.
    * @param l The listener to remove.
    public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
    propertyChangeSupport.removePropertyChangeListener(l);
    * Getter for property record_Process.
    * @return Value of property record_Process.
    public String getRecord_Process() {
    return this.record_Process;
    * Setter for property record_Process.
    * @param record_Process New value of property record_Process.
    public void setRecord_Process(String record_Process) {
    String oldRecord_Process = this.record_Process;
    this.record_Process = record_Process;
    propertyChangeSupport.firePropertyChange("record_Process", oldRecord_Process, record_Process);
    * Holds value of property rec_Match.
    private String rec_Match;
    * Getter for property rec_Match.
    * @return Value of property rec_Match.
    public String getRec_Match() {
    return this.rec_Match;
    * Setter for property rec_Match.
    * @param rec_Match New value of property rec_Match.
    public void setRec_Match(String rec_Match) {
    String oldRec_Match = this.rec_Match;
    this.rec_Match = rec_Match;
    propertyChangeSupport.firePropertyChange("rec_Match", oldRec_Match, rec_Match);
    public JTextField getTxt_rec_process() {
    return txt_rec_process;
    public void setTxt_rec_process(JTextField txt_rec_process) {
    JTextField oldTxt_rec_process=this.txt_rec_process;
    this.txt_rec_process = txt_rec_process;
    propertyChangeSupport.firePropertyChange("txt_rec_process", oldTxt_rec_process, txt_rec_process);
    }

  • WSIF Invocation (Schemac tool alternative to generate the facade class)

    Hi,
    I am trying to create a BPEL Project which supposed to invokes an EJB using WSIF call,
    I have created the EJB wsif using JDeveloper for the following method signature,
    public void handleMessage(Message inMessage) {
    The Parameter Message is an Complex object and having a byte[] array.
    when i trying to create facade class for the WSDL file
    <oracle_home>\bpel\bin schemac Mywsdl.wsdl
    It says the following:
    warn: The W3C datatype 'base64Binary' is not currently supported by Collaxa sche
    mac.
    warn: The W3C datatype 'base64Binary' is not currently supported by Collaxa sche
    mac.
    warn: The W3C datatype 'hexBinary' is not currently supported by Collaxa schemac
    warn: The W3C datatype 'time' is not currently supported by Collaxa schemac.
    schemac>WARNING: schemac tool has been deprecated, please use jaxb compliant com
    piler (e.g. oracle jaxb) to generate java classes from xml schema.
    schemac> generating XML business document ...
    schemac> compiling XML business documents ...
    and finally the SCHEMAC Failed Message.
    ------------------------------>
    I tried using the orajaxb suggested by above message :
    <oracle_home>/bin/>orajaxb -schema Mywsdl.wsdl
    Mywsdl
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24534: (Error) Element 'definitions' not expected.
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24526: (Error) Invalid attribute 'name' in element 'element'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24530: (Error) Element 'schema' has invalid namespace: 'http://sche
    mas.xmlsoap.org/wsdl/'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24527: (Error) Invalid element 'types' in 'schema'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24527: (Error) Invalid element 'message' in 'schema'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24527: (Error) Invalid element 'message' in 'schema'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24527: (Error) Invalid element 'portType' in 'schema'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24527: (Error) Invalid element 'binding' in 'schema'
    file:/D:/product/10.1.3.1/OracleAS_1/bin/Mywsdl<Line 14, Co
    lumn 6>: XML-24527: (Error) Invalid element 'service' in 'schema'
    and failed last.
    -------------------------->
    The Wsdl files has the binding as follows,
    <format:typeMap typeName="tns1:handleMessageElement" formatType="com.MyExample.HandleMessageElement"/>
    so my BPEL throws an run time Exception Missing classs HandleMessageElement:
    Please help me out in creating the facade classe using jaxb compliant com
    piler (e.g. oracle jaxb) for my wsdl,so that i could keep the classes in the bpel/system/classes
    Thank you
    Sivakumar

    Hello,
    Yes you are correct this is the way to create a service and client, at lease for SOAP....
    A Service, in OracleAS Web Service stack must at least have one SOAP (1.1 or 1.2) binding, you cannot in the current release have only WSIF.
    The warning, is not in this context an issue, you can ignore it.
    Also, the Application Server Control, does not currently expose any information about WSIF binding. The only way to see it would be to access the WSDL file a take a look to the bindings, you should see the WSIF one.
    About the client generation, currently the GenProxy command is only used to create SOAP clients, to create a WSIF client you must use the steps documenting in the advanced developer guide: Writing WSIF Client.
    Regards
    Tugdual Grall

  • How do you generate a runtime class for iconFunction from a BitmapData?

    Hi,
    I have a AdvancedDataGrid that I would like to generate a colored square bitmap as the icon, and give it to iconFunction.
    But iconFunction required the return of Class, but I have the BitmapData generated, can anyone provide a solution? Thanks.
    Here is my code :
    private function iconCallBack(item:Object):Class
        var layerNode:LayerItemVO = item as LayerItemVO;
        var iconBitmap:BitmapData = new BitmapData (14, 14, false, layerNode.color); //generated the bitmap based on the passed in color
         return iconBitmap; // wrong, because it needs to return Class, please help?
    <mx:AdvancedDataGrid id="layer_datagrid" iconFunction="iconCallBack" >

    Thanks for the reply.
    Can you provide me some sample code as how to use the custom renderer for drawing the colored square in front of the item name?
    Thanks.

  • Listen for event in own class?

    Hi
    I dispatch events from models to classes listening. How do you set up an event and listener in the same class?
    Eg for the former - a model "MyModel" to class - it's:
    public static const MY_VAR:String = "myVar";
    triggered by...
    dispatchEvent(new Event(MY_VAR));
    picked up in another class by...
    modelVar.addEventListener(MyModel.MY_VAR, doSomething);
    but what if the class that's dispatching also has the listener?
    So if MyClass is dispatching the event, along the lines of...
    addEventListener(MyClass.MY_VAR, doSomething);
    Cheers for taking a look

    Very often I'm waiting for a few key items before I can finally do something else. Setting simple flags or checking nulls can help with this.
    Often I download multiple data structures (JSON/XML/etc) and I need all of them before I can parse them because the co-depend on each other. URLLoaders finish at different times so I just set a flag for what I need but check if all are complete before I continue each time one finishes.
    e.g.
    package
         public class IHateWaiting extends EventDispatcher
              public static const MY_VAR:String = "myVar";
              private var _xmlA:XML;
              private var _xmlB:XML;
              public function IHateWaiting()
                   // load A
                   var ulA:URLLoader = new URLLoader();
                   ulA.addEventListener(Event.COMPLETE, _handleFinishedF);
                   ulA.load(new URLRequest("http://www.example.com/a.xml"));
                   // load B
                   var ulB:URLLoader = new URLLoader();
                   ulB.addEventListener(Event.COMPLETE, _handleFinishedF);
                   ulB.load(new URLRequest("http://www.example.com/b.xml"));
                   // listen to self
                   addEventListener(IHateWaiting.MY_VAR, _handleAppEventF);
              private function _handleFinishedF(e:Event):void
                   if (e.type == Event.COMPLETE)
                        var data:XML = XML(e.target.data);
                        // A or B? any way you can tell
                        if (data.A.length() > 0) _xmlA = data;
                        else if (data.B.length() > 0) _xmlB = data;
                        // event method (requires extra handler or a fake event)
                        if (_xmlA && _xmlB) dispatchEvent(new Event(IHateWaiting.MY_VAR));
                        // preferred direct reference, no handler needed
                        // if (_xmlA && _xmlB) _parseXML();
              private function _handleAppEventF(e:Event):void
                   if (e.type == IHateWaiting.MY_VAR) _parseXML();
              private function _parseXML():void
                    // parse XML
    I recommend the reference version from post #2. It's cleaner because you don't need to double up on functions (handler->reference) like you see above with dispatching. The only purpose for _handleAppEventF() in this case is just to run _parseXML(), which is a useless duplicate function.
    I've always kept my handlers free of model-esque logic, so you see me calling a different function from that handler, _parseXML(). This is just because I want my handlers to only handle events and then hand off the work elsewhere.
    Instead of dispatching the event, I agree with moccamaximum, run the method directly. Even if it's 2 lines of code to do 1 thing, I think the clarity of it is much cleaner coding. So I would recommend nuking the self-listener in the constructor above. When I have all the data I'm looking for, I'd run the methods in the class directly and If the parent needs to know, I'd dispatch when they complete.
    e.g.
              private function _handleFinishedF(e:Event):void
                   if (e.type == Event.COMPLETE)
                        var data:XML = XML(e.target.data);
                        // A or B? any way you can tell
                        if (data.A.length() > 0) _xmlA = data;
                        else if (data.B.length() > 0) _xmlB = data;
                        if (_xmlA && _xmlB)
                             // parse first (synchronous)
                             _parseXML();
                             // xml ready, dispatch to parent
                             dispatchEvent(new Event(IHateWaiting.MY_VAR));

  • Can't generate code from class diagram

    I have installed Studio Enterprise 8. I tried to create a class, but when I right-clicked on a class, there was no "Generate Code" on the contextual menu.
    I've tried the Help guide as pasted below. Would appreciate anybody's help. Thanks.
    To generate code:
    In the Projects window or in a diagram, right-click the element or elements for which you want to generate code.
    In the Projects window, this code generation function is supported for entire UML projects and for individual diagram elements.
    On the contextual menu, choose Generate Code. The IDE generates source code for all of the target items and displays the code in the Source Editor.

    Thanks, but I still have problem.
    File / New Project
    UML / Java Platform Model
    Name: UMLTest Location: D:\UML Unchecked Generate Code
    The UMLTest Project appears in the Project Window
    --- So far so good
    File / New Project
    General / Java Application
    --- There is no General category
    Under Category: Samples, Standard, UML, Web
    Under Samples, there is general, but project = Anagram Game.
    I still can't create a Java application from scratch.
    Using Web and Standard, I must provide ANT

  • WSDL generated from java class - how to include headers?

    I am using the servicegen ant task and generating a web service based on a java class. I would like to include a username and password in the soap header and read that info using a handler. I am able to get that working, but how do I get the auto-generated WSDL to include the username/password header information? Is there something that I have to do in the handler so that this information is included in the WSDL?
    Thanks,
    Mike

    I did do this and I got the following error when deploying to the Stand-alone OC4j:
    Operation failed with error:
    Error compiling
    :D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBOperationsWSApp-DBData-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :oracle.j2ee.ws.common.tools.api.ValidationException : Exception declaration mismatch between Implementation: dbdatapackage.DBDataOperations and Interface: dbdatapackage.DBDataWS. Impl class Method: getData declares exceptions not declared by the interface (java.lang.Exception)
    I am quite sure what it is saying. It generated the code for the Interface: dbdatapackage.DVDataWS. Impl class. Why would it not do it right? What expection is it complaining about? java.lang.Exception?

  • How to run a listener which is in another class??

    I want to call any listener from class a to b.
    For example in ClassA there exsist a button a.
    And in ClassB there exsist a button b.
    When I use the button A, I want to change the Button B's name.
    How can I do this?

    Thanks for all! It is ok.
    This is what I did in separate classes:
    A.java
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class A extends JPanel{
         public A(){
              a= new JButton("AAA");          
              add(a);          
         public JButton a;
    B.java
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class B extends JPanel{
         public B(){          
              b= new JButton("BBB");          
              add(b);          
         public JButton b;
    C.java
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class C extends JPanel{
         public C(){          
              c= new JButton("CCC");          
              add(c);          
         public JButton c;
    JFrameABC.java
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    public class JFrameABC extends JFrame implements Runnable{
         public void run(){
              final A a = new A();
            final B b = new B();
            final C c = new C();
            a.a.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent evt) {
                    b.b.setText("newB");
            b.b.addActionListener(new ActionListener(){
                 public void actionPerformed(ActionEvent evt) {
                      c.c.setText("newC");
            c.c.addActionListener(new ActionListener(){
                 public void actionPerformed(ActionEvent evt) {
                      a.a.setText("newA");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            getContentPane().add(a, BorderLayout.NORTH);
            getContentPane().add(b, BorderLayout.CENTER);
            getContentPane().add(c, BorderLayout.SOUTH);
            pack();
            setLocationRelativeTo(null);
            setVisible(true);
    RunJFrameABC.java
    import java.awt.EventQueue;
    public class RunJFrameABC {
        public static void main(String[] args) {
            EventQueue.invokeLater(new JFrameABC());
    }---------------------------------------------------------

  • Does FB for PHP no longer generate sample php class?

    Before on Flash 4 and 4.5
    Now on FB4.5 for PHP...
    Does this mean we have 'do the arithmertic' to write the classes instead of just expanding off the generated code?

    Sure, but I am going to use this article in my answer which describes the full workflow http://www.adobe.com/devnet/flash-builder/articles/introducing-flashbuilder45-php.html
    after you create a project and write your service as a PHP class, you should right click in the Explorer on the PHP class and select "Create PHP Service for Flex".
    This is the relevant part in the article:
    1.       Right-click the file with the class that you want to introspect and select Create PHP Service for Flex (see Figure 3).
    Figure 3. Selecting Create PHP Service For Flex to introspect a PHP class.
    Roy

Maybe you are looking for

  • Create a new report

    Hi I SCCM 2007, i have a report "Packages referenced by a specific task sequence", i search to modify this report to obtain "Packages referenced in all task sequence" Thanks

  • ASA SSL Licensing query

    Hi, We are planning on putting Active/Standby pairs of ASA CSC bundles at three of our sites. We would also like to use these pairs as SSL head end devices. The question is whether we really need to purchase two sets of SSL licenses (and for that mat

  • How canI change the date format from mm/dd/yyyy to dd/mm/yyyy in FirefoxOS?

    I have just received and am trying out things my new Alcatel Fire E with FirefoxOS 2.0.0.0 (just updated). It is usual in most operating systems to be able to customize the date and time settings (amongst other things). After a few fruitless hours fi

  • Anyone else having this problem? Region Editing problems, can't edit or see in editor.

    Hello, I'm using FCPX and i' having region issues, first of all i can't edit the region with the mouse as in pull it from the left or right to make it longer the whole region moves as if i clicked in the middle, then when i doucle click on it i'm not

  • Patch distribustion poinit not working

    I have one sccm Primary server  ,7secondary server & 3 Distribution point .My All secondary server  working fine . 2 distribution point also working fine  but distribution point not  working  that why  that particular location my patch distribution t