How to add sprite component to application

Hi,
In my application i am using a custom component which
extends Sprite class. I am adding this component to application as
<local:mySprite width="500" height="300" /> but it is showing
following error on application run;
Type Coercion failed: cannot convert mySprite@129be5e1 to
mx.core.IUIComponent.
How should i overcome this problem, if any suggestion please
reply.
Thank you.

Everything you add to the display list of the application
must implement IUIComponent. Wrap the sprite in a UIComponent or
UIMovieClip.

Similar Messages

  • How to add push button in application tool bar in SAP transaction VA01

    How to add push button in application tool bar in SAP standard transaction VA01 and how to implement the code for that function code.

    There is no scope to create a push button in application tool bar. Instead of that we can add in a menu bar.

  • How to add log to an application

    Hi,
    Can anyone give me the procedure for how to add logs to my application
    Regards
    Padma

    Padma. My understanding is that logging is the same way in Web Dynpro as in a normal J2EE app.
    Maybe this section in sap.help will be of use to you.
    http://help.sap.com/saphelp_nw04s/helpdata/en/fe/4f5542253fb330e10000000a155106/frameset.htm
    I haven't personally used SAP's logging because we ported our apps from WebSphere and we were already using log4j. We evaluated SAP's logging and didn't find that the work involved to switch or bridge log4j to SAP's logging was worth it.
    Good luck

  • How to add HR component in Netweaver 2004

    Hi
    i was installed sap Netweaver 2004 successfully. It has BASIS, ABAP, BI components available by default.
    i want to add HR component. How to do it???? What is the Link in SMP?
    pls. provide solution
    regards
    raghu

    Reyes!
    Yes. i checked "Package level" from SPAM. It shows ONLY following components,
    BASIS        640  
    ABAP         640
    PI_BASIS   2004_.....
    BI               3.50 
    Now how do u add HR component, logistics and others.............
    Psl. provide solution.......... it's urgert..........
    regards
    raghu

  • How to add one component when some action take place

    Hi,
    i created a GUI using Netbeans Ide, In that i want add a component when i click some button
    i showed it here see the diagram
    [click here to see|http://www.mediafire.com/imageview.php?quickkey=jtgzjrfenwm]
    my sample code
    public class ProcessFiles1 extends javax.swing.JFrame implements ActionListener,
                                                        PropertyChangeListener{
        private JProgressBar progressBar;
        / Creates new form ProcessFiles1 */*
    *    public ProcessFiles1() {*
    *        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.*
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {====================================>here i am not adding Progress bar
                                                                                                                             to GUI
            jToggleButton1 = new javax.swing.JToggleButton();
            jToggleButton2 = new javax.swing.JToggleButton();
            jComboBox1 = new javax.swing.JComboBox();
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            jComboBox2 = new javax.swing.JComboBox();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Admin@localhost");
            setIconImage(Toolkit.getDefaultToolkit().getImage("c:\\Logo.PNG"));
            jToggleButton1.setText("Select File");
            jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    FileChooser(evt);
            jToggleButton2.setText("Run Files");
            jToggleButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    addComp(evt);
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox1ActionPerformed(evt);
            jLabel1.setText("Success");
            jLabel2.setText("Faild");
            progressBar = new JProgressBar(0, 100);
            progressBar.setValue(0);
            progressBar.setStringPainted(true);
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jTextArea1.setColumns(20);
            jTextArea1.setEditable(false);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());=================>from here i am adding components
            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(26, 26, 26)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 965, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jToggleButton1)
                            .addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jToggleButton2)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(32, 32, 32)
                                    .addComponent(jLabel2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addContainerGap(29, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jToggleButton1)
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel1)
                        .addComponent(jLabel2)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(26, 26, 26)
                    .addComponent(jToggleButton2)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 583, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(20, Short.MAX_VALUE))
            pack();
        }// </editor-fold>
    private void addComp(java.awt.event.ActionEvent evt)---------------------------------------->when 'runfile' button clicked i am
                                                                                      trying to add progressbar component it is not adding
           layout.addLayoutComponent("Progress", progressBar);
           pack();
         }how can i add progressbar when runfile button clicked
    please any one focus some light on this
    Thanks in advance,
    Nagaraju.
    Edited by: uppala on Dec 18, 2009 11:33 AM

    Well, normally the code would be:
    panel.add( someComponent );
    panel.revalidate();But since you are using the IDE to generate your code you need to learn and understand how to use the GroupLayout and all its constraints to add the component.
    My advice is to get rid of the IDE generate code and create the GUI yourself.

  • How to add dll library to application?

    I start programmed the CVI a few weeks ago and I have a little problem. I must make an application layer for profibus master device. However I total do not know how to add dynamic library to program, because in another way I get the error: undefined symbol. I know that it very trivial, but I cannot find solution. I have a lib file and also I include file about device, but I still get the error – undefined symbol – can you help me?
    Thanks very much for any advice or help

    Dear laszku,
    Are you looking for solutions to connect your CVI application with PLC? Because there are also solutions for that which are easy to use, and to implement with CVI.
    If you want to use your DLLs, there are some on-line help, how to import them in CVI.
    Basicaly there are two different method to import DLLs:
    - static import, when you import the library in your CVI project. The dll will be loaded when the exe starts running. If there is an issue to load the library, you'll be able to get the error at compilation time.
    - dynamic dll import, when you load the library at run-time. With this, you get the flexibility to control, when will be the dll linked to your exe in the memory, while running. The disadvantage is, you'll get errors only at run-time.
    I recommend you some of our on-line tutorial, how to load DLL into your application in CVI:
    CVI Help: Loading Dlls - This says: You cannot import DLLs directly into your project. You need to create DLL Import Library, which can be imported into your project.
    To do so, look at this knowledge base: Creating Import Libraries for a DLL in LabWindows/CVI
    You might get answers for your following questions at this FAQ page:
    FAQ: Using Dynamic Link Libraries with LabWindows/CVI
    Some help sites:
    Rules for Using DLL Files
    Linking to Functions Defined in a DLL From LabWindows/CVI
    If you need dynamic linkink, you can get example code with this site:
    How Can I Access DLL Functions in a LabWindows/CVI Program Without Including the Import Library in t...
    I hope, I could help you to find the way how to import DLL libraries.
    If you still couldn't solve the error after studying the links, please provide me more information, where, which symbol is missing, and also the full error message.
    The error you get, can be caused by the linker or pre-compiler also, which doesn't find the symbol you requested. Please check the path of your library and dll also.
    Best Regards,
    Tamas Szekely
    Applications Engineer
    National Instruments

  • How to add a module in application

    Hi All,
    I want to add a new module in application. In Database it is OK. But in application i upload the new module in prodappl folder. But how to set his TOP Plse suggest.
    Many Thanks
    Ghanshyam

    Hello,
    What is the database and applications versions?
    Additionally please see the following threads;
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:4314145935944948375::::p27_id,p27_show_header,p27_show_help:199619.995,1,1
    Oracle Metalink: How to add a new module to existing 11i installation. Doc I.D. 199619.995.
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:4314145935944948375::::p27_id,p27_show_header,p27_show_help:230513.995,1,1
    Oracle Metalink: install 11i all modules? Doc I.D. 230513.995.
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:4314145935944948375::::p27_id,p27_show_header,p27_show_help:645423.995,1,1
    Oracle Metalink: how to install only needed products? Doc I.D. 645423.995.
    Adith

  • How To add One component to a TabbedPane

    Hi,
    I have a TabbedPane with four tabs in it
    the tabs are created dynamically it may be four or five
    i want to add only one component to it i.e JTable
    if i just add a component to the tabpan like below
    tabpane is an instance of JTabbedPane
    tableofvalues is an instance of JTable
    tabpane.add(tableofvalues); this code creates a
    default tab and add the component
    but i dont want the default tab i just want only the component
    can somebody please give me a solution for this
    give me the overiding function also

    i need to add one component which is common to all the tabs You can't. A component can only be added to a single container.
    However you might be able to share a model. For example:
    JTextField forTab1 = new JTextField("some data");
    JTextField forTab2 = new JTextField( forTab1.getDocument() );

  • How to add Custom Address Book Application?

    I need add my custom address book application, so I has reading docs and wikis about convergence customization but no see clear how to.
    I take a dojo tutorial for change event from addres book buttons but may be are not the best practice.
    Somebody know information source for solve this please.
    Thanks.

    JCV_ wrote:
    I need add my custom address book application, so I has reading docs and wikis about convergence customization but no see clear how to.The "YahooABSPlugin" code in the c11n_sample directory may provides some guidance.
    If this still doesn't help then you could contact Sun to get help from Sun Professional Services. Writing a custom Convergence application is far from trivial.
    Regards,
    Shane.

  • In classic environmnet, how to add memory to an application

    My MS Powerpoint crashes when I try to print anything from it, saying it needs more memory. I can't find a way to add memory to it. Any ideas? Thanks.

    At this point, it's definitely not a problem with having enough memory assigned to the application. Right now, you've got a little under 600MB assigned to PowerPoint, which is overkill. It may be taking up too much memory now, depending on how much physical RAM you have in your Mac. I would knock it back down to at least 75,000 (a bit under 75 MB). That's more than enough for PowerPoint.
    However, that still doesn't explain the memory errors you're getting. It makes no sense that PowerPoint is saying it doesn't have enough memory when it is currently assigned far more than any use of that application needs. It may be an issue with the document in question being damaged. But more likely, PowerPoint itself is damaged and could probably be fixed by reinstalling Office. If you do that, remove Office from the hard drive first. Otherwise, the installer tends to reinstall only some of the files instead of everything if it's installing to the same folder. Once done, open each of the Office applications and bump the memory usage up to double to start with, as they are by default assigned a very small amount of RAM.
    If after that, you still have memory issues when printing, then find the LaserWriter print application of the Chooser (I can't remember exactly where that is in the Extensions folder) and increase its memory usage in the same way.

  • How to add sound to an application

    how would i add sounds such as 'well done' to an application that is designed for children.
    please could someone guide me as i dont have a clue of how to do this.

    I do it like this:
    sound = new Applet().newAudioClip(getClass().getResource("sound.mid"));of course that's limited to only .mid, .wav, and .au

  • How to add attachments to Webdynpro Application?

    Hi All,
    I have a requirement wherein I need to add supporting documents to a Webdynpro application online. The attachments can be of any type and any number of attachments can be added. If any of you had worked in such a kind of requirement please give some inputs.
    Thanks
    Subathra

    Hi,
    i think we can't add an attachment here rathere we can upload the file to to applicarion server
    you can do as below
    1. create a file upload UIElement.
    2.capture the file name in to context element
    3.use the following code on your action
    DATA: it_bdcdata TYPE TABLE OF bdcdata,
               wa_bdcdata TYPE bdcdata,
                it_messtab TYPE TABLE OF bdcmsgcoll,
                wa_messtab TYPE bdcmsgcoll.
    DATA: MSG_TEXT(200)  TYPE C.
    PERFORM BATCH_INPUT.
    CALL TRANSACTION 'CG3Z'
        USING IT_BDCDATA
        MODE 'A'
        UPDATE 'S'
        MESSAGES INTO IT_MESSTAB.
    LOOP AT IT_MESSTAB INTO WA_MESSTAB.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID        = WA_MESSTAB-MSGID
            LANG      = WA_MESSTAB-MSGSPRA
            NO        = WA_MESSTAB-MSGNR
            V1        = WA_MESSTAB-MSGV1
            V2        = WA_MESSTAB-MSGV2
            V3        = WA_MESSTAB-MSGV3
            V4        = WA_MESSTAB-MSGV4
          IMPORTING
            MSG       = MSG_TEXT
          EXCEPTIONS
            NOT_FOUND = 1
            OTHERS    = 2.
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        WRITE:/ MSG_TEXT.
      ENDLOOP.
    *&      Form  BATCH_INPUT
          text
    -->  p1        text
    <--  p2        text
    form BATCH_INPUT .
      PERFORM bdc_dynpro      USING 'SAPLC13Z' '1020'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RCGFILETR-FTFTYPE'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=EIMP'.
      PERFORM bdc_field       USING 'RCGFILETR-FTFRONT'
                                     *HERE PASS YOU FILE NAME .
      PERFORM bdc_field       USING 'RCGFILETR-FTAPPL'
                                    HERE PASS THE FILE NAME ON THE APPLICATION SERVER
      PERFORM bdc_field       USING 'RCGFILETR-FTFTYPE'
                                    'BIN'.
      PERFORM bdc_dynpro      USING 'SAPLSPO1' '0300'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=YES'.
    perform bdc_dynpro      using 'SAPLC13Z' '1020'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EECAN'.
    endform.                    " BATCH_INPUT
    *&      Form  BDC_DYNPRO
          text
         -->P_0112   text
         -->P_0113   text
    form BDC_DYNPRO  using    program
                              dynpro.
    *Fill internal table with program name and screen number
      CLEAR WA_BDCDATA.
      WA_BDCDATA-PROGRAM  = PROGRAM.
      WA_BDCDATA-DYNPRO   = DYNPRO.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
    endform.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
          text
         -->P_0117   text
         -->P_0118   text
    form BDC_FIELD  using    fnam
                             fval.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
    endform.                    " BDC_FIELD
    Thanks,
    Shaik Shadulla.

  • [ OIM 11gR2 PS1 ]How to add additional field on Application Instance Form ?

    Hi,
    In our scenario we have Disconnected applications in OIM. AI (Application Instance) form and PD editing is created by OIM.
    We want to add additional field in AI form.It is visible in back end. But,its not visible in OIM admin console for admin and as well for end user.
    Is there any property related to form field in AI ,where we need to make changes to make it visible ?
    Instance used is OIM 11gR2 PS1
    Thanks,
    RPB
    Edited by: RPB25 on May 29, 2013 9:46 PM

    I was able to resolve this issue . we need to click on "regenerate view".

  • How to add new component to JFrame dynamically?

    Hello,I'm now study the GUI and here i meet a problem.I want to display a pic use JComponent.In paint() method i paint the pic.because i use a button to open a FileDialog to choose a pic file and send the path info to the constructor of JPicPane(i extends it from JComponent),so it will be add to the frame when it was visible and we know that there is a swing thread problem.so i use invokeLater(new Runnable(){....pack();});I want to know besides pack() can i use other method to change the layout sothat the new component could be displayed.becasue pack() will make the frame changeits size.(it displays the preferred size of components?) I don't want it make the frame change size and the component be displayed,is there any approch else?one method occur to me is chang the prefer size of contentPane sothat the pack won't make the frame small.is there any other method?and by the way,what's the different between invokeLater and invokeAndWait?
    thank you all! thank you!

    No idea why it is slow(er). The difference between invokeLater and InvokeAndWait are described here and in the tutorial that is linked there.

  • How to add calender component

    hi maxideon. i done upto the diagram which is shown to you. now i have small problem
    anybody please go through this link then you will get idea
    [http://www.mediafire.com/?sharekey=c2ec1a687d8279f091b20cc0d07ba4d2ddbbdb9f07ee802d]
    in the paint diagram i wrote "i want a seperator like that to the existing structure" after that i have a calender class,i want to add that calender below of that seperator(i am showing with green box).how can i add it.please help me
    thanks in advance
    nagaraju.

    i done as you told but i got some problem. when i doing like below my tree struture frame totally disappeard the freshely added calender appeard.
    public class HorizantalDemo extends JPanel
      private JSplitPane splitPane;
      private JTable jtable;
    JPanel p=new JPanel();
      JSeparator  js=new JSeparator();
    splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
                                       jsp, jsp1);-------------------------------------------------->*split pane created with tree strucute(left side) table structure(right side)*
            splitPane.setOneTouchExpandable(true);
            splitPane.setDividerLocation(150);
              p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));--------------->*box layout*
            p.add(js);-------------------------------------------------------------------->*adding jseparator to Jpanel*
            p.add(new UseJCalendar());----------------------------------------->*adding calender class to Jpanel*
            splitPane.setLeftComponent(p);------------------------------------>*adding Jpanel left side of the splitPane(while doing this total tree structure and table structure in splitPane disappear and this calender only appear,actually this calender need to appear below the tree structure with seperator)*
    frame.getContentPane().add(splitPane);the above one is my problem please help me
    thanks in advance
    nagaraju.

Maybe you are looking for

  • Script Error Message on OS 10.4.8

    I have 2 applications (games) which my son likes to use. They are "Welcome to Merriweather Farm" and "Busy Days In Deerfield Valley". Great games for kids who like John Deere Tractors and related stuff. The games installed fine and ran fine for a few

  • Quicktime (and iTunes) skip if uploading

    ok. This is a little weird. For the past several months, QT and iTunes have trouble playing any format audio or video if I am uploading. For example, if I send an email with a bunch of pictures, itunes or QT will start stuttering. Processor usage doe

  • How Do You Create a POP 3 Email Account On Yosemite 10.10.1?

    Hello There.. The title says it all.  " How Do You Create a POP 3 Email Account On Yosemite 10.10.1?" When I go to set up a new E-mail account, I don't seem to have an option to create a POP 3 account, it just defers to an IMAP account.. Is there any

  • Race conditions with UI thread

    Hi community, the update to LabVIEW 2014 has caused sveral of my vis to act up - vis that I had coded with race conditions with the UI thread that I was not aware of. Maybe they didn't exist previously, maybe I was just ignorant. Here is a where I fi

  • How can I download from digital voice recorder (DS-2000) into itunes?

    I would like to download recordings from my Olympus DS-2000 into itunes so I can then burn a cd for use elsewhere. However, when I connect the DS-2000 to my G5 the recorder goes into remote mode and doesn't show up on the desktop as an unidentified i