How to add an object on mouse click?

i am trying to add an object on user's mouse click...but not getting how?
can anyone help me?

You could create the movieclip object and put it in the library with a linkage name, e.g. mcExample and then on the main _root. timeline add something like:
this.onMouseDown = function(){
mcExample = this.attachMovie("mcExample", "mcExample", 1);
This attaches the movieclip from the library onto the stage when the left mouse button is pressed. You can then manipulate the movieclip like any other using its identifier: mcExample. If you want to change the name of the attached movieclip then change the second parameter of attachMovie

Similar Messages

  • How to Add New Object?

    HI,
    Any body can say how to add new object. For Example: The Document need to link with Invoice Transaction (T.Code: VF01, Table: VBRK/VBRP).
    Points will be rewarded, if information is useful.
    Tks
    Mani.

    Hi
    You can create New objects using the T.code: SE80.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    1. In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140. The processing logic must follow that of screen 1204 in program SAPLVC130.
    2. Create function module OBJECT_CHECK_XXXX (XXXX = object name) If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Regards
    S.Sivakumar
    Reward points if useful----

  • How to generate random objects with a click?

    Hi Guys,
    I am new to the forum so hello to you all!
    I start here with a question that doesn't leave me sleeping during the night.
    I am working on a interactive slideshow.
    That's all right, ultil now.
    Now things becomes blurry for me.
    In every page I would like to add a little animal in the lower right angle of the screen so, when u click on this animal, a baloon appears with a wroten sentence inside it.
    But, I wanto to make the sentences inside the baloon RANDOMLY different every time u click on the animal (using a selection, for example, of 30 sentences at all), but I don't really know what I have to do in order to realize my idea.
    I am not interested to create a preset cycle of sentences, but a random behavior with a click.
    any suggestion please?
    Thaks a lot and best regards!
    Theus

    As I imagined,
    I got some problems to do do that because I am new to the director use. So I can't made it working, if u cant be a little patient with me please, that's will be good!
    What I need is a more "steb by step" help if is not boring for you.
    I go to insert>control>field in order to create a field and then, after double ciking the field, I type four example sentences into the text editor that apperars, right?
    How I have to write the sentences inside the text editor in order to subdivide the text into first sentence, second sentences and so on? There is a special syntax to follow?
    I wrote these exaple sentences:
    "Triangle" "Square" "Circle" "Cube"..... As u see, I am not sure where and how I have to put the sentences in order to select them randomy
    About handlers.
    What I have to do to create an event handler?
    I created a button then i rename it ChooseRandomSentence but now I don't know what I need to do to proceed.
    Here have I to write this script?
    On ChooseRandomSentence
      global gSentenceList, gPreviousNR
      x = gSentenceList.count -- X = count sentences
      y =  random(x) -- Picks a random number from X
      repeat While y  =  gPreviousNR then -- check if number is used previous time player clicked button
          y =  random(x)
       end repeat
      put gSentenceList[y] into field "ShowSentence"  -- Shows random sentence in a field
      put y into gPreviousNR -- add number to next check
    end
    and this?
    on MouseUP
    ChooseRandomSentence
    end
    Some other questions:
    -What about letters X and Y into the exaples scripts u wrote? If I have 4 sentences, which numbers I need to use to replace X and Y?
    -I need to change sentences with  mouse clicking, and not simply moving the mouse over the sprite or the button, is MouseUP command a script about clicking or about moving over?
    As u see I am a very very beginner but I really want to learn, so hope I don't boring u with all those questions.
    Thanks again a lot
    and, If u came in Italy, there is a beer for you! cheers!!!
    Theus

  • How to add  z object to root object in BOL

    hi,
    I have to add my z object to BuilStandardAddress (standard object for BP Address ).I hav created a external object by using ztable.I can see that object in transaction GENIL_MODEL_BROWSER as a Root Object but I hav to add this object as dependent object under BuilStandardAddress .
    Please suggest any possible solution for this.
    Thanks in Advance.
    Hem

    hi carsten,
    Thanks a lot for reply.
    Acc to my opinion there is 2 method first one is enhance standard implementaion class.
    second one is to use this class.CL_CRM_GENIL_GEN_TABLE_OBJ
    I opt. second mehtod:
    Actually ,Our requirement is that we hav to add some custom  fields in addresss view.If weadd custom fields through EEWB then it adds fields to builheader rather then standard address.To achieve this I have created a external object and assign a impleimentation class (CL_CRM_GENIL_GEN_TABLE_OBJ). after this I hav define Object defination in which I define this object as dependent object of builstandardaddress.and give my z table name.After that I hav define Model defination in which i hav define relationship.By doing this I am able to use my object in view.Now I added this z attribute to the standardaddress node of standaddress view of component BP_ADDR.
    Now, I can see this field on UI screen but My Implementation Class has some methods(like modify, Save )that will save the data in z table.these methods are not calling at runtime.
    Plz suggest any solution
    Hem
    Edited by: janawa hemlata on Dec 4, 2008 7:31 AM

  • How to add new object class to a material ?

    Hi experts,
    I have to add new object class to a material ( classification class ) and then add new characteristics values for the material ....But i do not know which FM to do this , If you please to give me the solution for this problem
    PS: rewards immediately
    Thanks,

    Hi,
    Check this  CALL FUNCTION 'CLVM_CLASS_BOOK' Run it for IN UPDATE TASK
    Reward if useful,

  • How to add Documents object faster(DI-API)

    Hello,
    I investigated the time concerning adding to Order Document using DI-API.
    Result,339sec per 300 document(for each document has
    4 items ,program was not use Start/End transaction).
    This result is not so bad, but i wish faster time.
    Please suggest faster way to add Documents object using
    DI-API.
    My source code is below.
    vINV = vCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOders)
    For I = 1 To 300
    vINV.CardCode = "test"
    vINV.Docdate = "2005/12/31"
    vINV.DocDueDate = "2005/12/31"
    vINV.NumAtCard = "test"
       For J = 0 To 3
         vINV.Lines.ItemCode = "test"
         vINV.Lines.Quantity = 1
         vINV.Lines.Price = 400
         if J <> 3 Then
           vINV.Lines.add()
         End If 
        Next J
       RetVal = vINV.Add
    Next I

    Hi Jiro,
    I have never worked with this before, but maybe you can investigate using the DI Server. Search the forum for the DI Server. Herewith an extract from the DI Server help file:
    <i>SAP Business One - Data Interface Server (DI Server) is a Component Object Model (COM) service running on a server that enables multiple clients to access and manipulate SAP Business One company database, using SOAP version 1.1 messages.
    The DI Server uses the DI core to enable the same functionality provided by the DI API with the following advantages:
    - Server architecture.
    - <b>Improved performance.</b>
    - Connection pooling mechanism.
    - Generic interface.
    The DI Server operates with SAP Business One application version 2004.</i>
    Hope it helps,
    Adele

  • How to change dynamic text on mouse click of an object

    Here is my Project File.
    I'm wanting to change dynamic text when an object is clicked.
    I created 3 dynamic text boxes under "Selected Colors" and gave them instance names of selected_roof_color, selected_trim_color and selected_wall_color.
    When the user clicks a color (ie Arctic White) and then clicks say the roof, I want the "Selected Color" to display "Arctic White" to the right of "Roof:". 
    The colorable areas on the building have been given instances of roof, walls and trim.
    I used this tutorial to change in the textbox underneath the colors when you mouse over a color.
    Thank you for your assistance.

    My first button color is Arctic White and it has an instance of arcticwhite.
    The actionscript for the Arctic White Button is:
    on (release) {
        _root.fillColor = 0xf3f5f4;
        _root.brush.gotoAndStop(1);
    The roof button has an instance of selected_roof_color and my dynamic text field where I want "Arctic White" to appear is given an instance of selected_roof_text.
    Using your suggestion, my main Actionscript now has the following
    roof.addEventListener(MouseEvent.CLICK,roof);
    function roof(e:MouseEvent):void{
    selected_roof_text.text="roof";
    Looks like I've still got something incorrect as the selected_roof_text isn't changing when I click a color onto the roof.
    Can you explain what the F in "roofF" is?  Is that a typo?

  • How to add two objects on scene and how to rotate them?

    I am beginer on 3d. I am trying do write applet where are 3x3x3 rubic.
    My plans are to have 27 litle cubes. There are 6 flats (9 cubes in a flat) so i have six objects groups. My problem at this moment is that i cant find out how to make two objets. Each of this two objects consists from couple more litle objects. Some of litle objects can be in first and second big object. For example it can be two flats of rubic (corner).
    Is anybody have some examples or somehow to hepl me to find out.
    Thanks a lot

    I have code :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.behaviors.mouse.*;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import javax.vecmath.AxisAngle4f;
    import javax.vecmath.Color3f;
    import javax.vecmath.Vector3f;
    public class RubicApplet extends Applet implements MouseListener
         TransformGroup objRotate = null;
    public BranchGroup createSceneGraph(SimpleUniverse su,Canvas3D canvas)
         // Create the root of the branch graph
         BranchGroup objRoot = new BranchGroup();
         objRoot.setCapability(BranchGroup.ALLOW_DETACH);
    Transform3D transform = new Transform3D();
         transform.setRotation(new AxisAngle4f(.5f,1f,1f,.5f));
    BoundingSphere behaveBounds = new BoundingSphere();
    // create Cube and RotateBehavior objects
    objRotate = new TransformGroup(transform);
    objRotate.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    objRotate.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    objRotate.setCapability(TransformGroup.ENABLE_PICK_REPORTING);
    // Colors
    Color3f gray = new Color3f(0.2f,0.2f,0.2f);
    Color3f red = new Color3f(1.0f,0.0f,0.0f);
    Color3f white = new Color3f(1.0f,1.0f,1.0f);
    Color3f yellow = new Color3f(1.0f,1.0f,0.0f);
    Color3f green = new Color3f(0.0f,1.0f,0.0f);
    Color3f blue = new Color3f(0.0f,0.0f,1.0f);
    Color3f purple = new Color3f(1.0f,0.0f,1.0f);
         // Object possition
    float x=-0.5f;
    float y=-0.5f;
    float z=-0.5f;
    objRoot.addChild(objRotate);
         // colors for: back, front, right, left, bottom, top
    Color3f[] myColors0 = {white,gray,gray,red,blue,gray};
    RCube cube1 = new RCube(myColors0,new Vector3f(x-1,y-1,z-1));
         // colors for: back, front, right, left, bottom, top
    Color3f[] myColors1 = {gray,gray,gray,red,blue,gray};
         RCube cube2 = new RCube(myColors1,new Vector3f(x-1,y-1,z+1));
         // colors for: back, front, right, left, bottom, top
    Color3f[] myColors2 = {gray,yellow,gray,red,blue,gray};
         RCube cube3 = new RCube(myColors2,new Vector3f(x-1,y-1,z+3));
    // colors for: back, front, right, left, bottom, top
    Color3f[] myColors3 = {white,gray,gray,red,gray,gray};
         RCube cube4 = new RCube(myColors3,new Vector3f(x-1,y+1,z-1));
    objRotate.addChild(cube1);
    objRotate.addChild(cube2);
    objRotate.addChild(cube3);
    objRotate.addChild(cube4);
    MouseRotate myMouseRotate = new MouseRotate();
    myMouseRotate.setTransformGroup(objRotate);
    myMouseRotate.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myMouseRotate);
    MouseTranslate myMouseTranslate = new MouseTranslate();
    myMouseTranslate.setTransformGroup(objRotate);
    myMouseTranslate.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myMouseTranslate);
    MouseZoom myMouseZoom = new MouseZoom();
    myMouseZoom.setTransformGroup(objRotate);
    myMouseZoom.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myMouseZoom);
    // Let Java 3D perform optimizations on this scene graph.
    objRoot.compile();
         return objRoot;
    public RubicApplet()
    setLayout(new BorderLayout());
    GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();
    Canvas3D canvas3D = new Canvas3D(config);
    canvas3D.addMouseListener(this);
    add("Center", canvas3D);
    SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
    BranchGroup scene = createSceneGraph(simpleU,canvas3D);
         simpleU.getViewingPlatform().setNominalViewingTransform();
    simpleU.addBranchGraph(scene);
    public static void main(String[] args)
    Frame frame = new MainFrame(new RubicApplet(), 600, 600);
         public void mouseClicked(MouseEvent e)
         public void mouseEntered(MouseEvent e)
         public void mouseExited(MouseEvent e)
         public void mousePressed(MouseEvent e)
         public void mouseReleased(MouseEvent e)
    I need to rotate with some event two cubes and with some other event rotate three cubes

  • How to add new Object Type In Mass

    Hi Expert,
    We have to required change Payment term of Customer (ZTERM) in scheduled Agreement,
    we have gone through Mass, but presently no object type available to change in scheduled Agreement, So can we add the new object in Mass? & How? Please help.
    Regards
    BK GAIKWAD

    Hi,
    Presently no standard object type avaialble for Sch. agr.(Sales)
    Go for BDC for updation of your field (try with LSMW also)
    Thanks
    Chidambaram

  • How to add an object removed from an ArrayList to another ArrayList

    i m having a class Node, which has two ArrayLists:
    1. my_queue
    2. cq
    Both the arraylists have objects of the same class Packet.
    i need to search in 'cq' and remove a 'packet' and add it to my_queue
    Note: the Node class's objects r implemented as array of objects
    i have used Iterator for search.
    how do i execute what i want?
    PLEASE HELP. I M STUCK WITH MY PROJECT.

    First, you want to use ListIterator, not the regular iterator (get it with the listIterator() method).The ListIterator has a method remove() you can use to remove the currently selected index from the list. Then you can use the add() method of your other list to add the removed object. Simple.
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/ListIterator.html

  • " How to  add a Object in the Multiprovider "

    Hai Friend's,
    I have created a Multi-provider, combination of 2 Info cubes.
    I have to add one more object( one more field ) to my Multi-provider.
    Can anybody tell me the Solution.

    Hi,
    Do you want to add one more IO in MP?
    If yes, then drag IO from the underlying cubes to MP and then click on IO's and click on assign. Then select underlying Cube . and activate.
    If you want to another Object to MP, then click on MP in RSA1 and say change, and then add another IO.
    See below links for more information:
    http://help.sap.com/saphelp_erp2004/helpdata/en/52/1ddc37a3f57a07e10000009b38f889/content.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2f5aa43f-0c01-0010-a990-9641d3d4eef7?QuickLink=index&overridelayout=true
    Regards
    Amandeep Sharma

  • How can I enable the center mouse click to open and close tabs in Firefox and Chrome?

    I have a MacBook Pro Model A1261 purchased in 2009. On my other mac at work (and my PC) I can center click to open a link in a new tab while in Chrome or FireFox, and also to close a tab by clicking on it in the tabs at the top. I am using an external USB mouse on my MacBook Pro and when I click the center scroll wheel it brings up the dashboard. I looked in the settings but wasn't able to find a way to change that setting for the center button to open and close tabs in my web browser. Is there a way? Please help!

    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    * browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    * browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    * browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    * browser.gesture.pinch.latched -> <b>false</b>
    *http://kb.mozillazine.org/about:config
    See also:
    *pinchy: https://addons.mozilla.org/firefox/addon/pinchy/

  • How to add/delete items in right click context menu when opening a new link FF17 osx... 6 instances of open link in new identity profile have appeared

    The menu items appeared without any idea why, they had not been there before. I have macbook with os 10.6.8 I had been trying to get pdf to work in firefox, so had followed a recipe suggesting enabling the pdf reader part of firefox. Required making 2 adjustments to the about:config. One disabling the browser.preferences.incontent and would changing default of pdfjs. Pdf still won't display, but don't know if what I did is related. Now I am trying to just find out how the menu gets modified at all, and whether I can do so as a user.

    A little research revealed addons can add items to context menu, in this case multifox adds option to open tab in new profile for multiple gmail etc logins. I had updated addons earlier, think that triggered it. So now I know why and what it does. The problem is why 6 times listed (instead of just one)... it also varies, sometimes the context menu will have one instance... and have seen as many as 9. Not sure why it varies, but would still also like to know how to modify context menu. Could just be a bug in multifox with FF17 I suppose. I will disable multifox and see if problem goes away.

  • How to add an object in JNDI when a server starts?

    I have an integration app. The app contains EJB project. The project contains EJB which reads data from LDAP.
    My first version of EJB contains the following code:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, strProvider);
    env.put(Context.SECURITY_AUTHENTICATION, strAuth); env.put(Context.SECURITY_PRINCIPAL,strPrincipal); env.put(Context.SECURITY_CREDENTIALS,strCredentials);
    DirContext dirCtx = new InitialDirContext(env); // exception
    All connection properties are hardcoded and it is not a good practice.
    Also I can put those properties into deployment descriptor. But I am going to have some EJBs and each EJB has to have those properties into descriptors. It is not useful.
    My idea: I would like to have whatever object which is called automatically when a server starts; this object creates InitialDirContext and put the context into JNDI. All EJBs lookup the context by a name. But I don't know how to do that.
    And another question: how to change connection properties dynamically? My idea is putting the properties in XML Cache. And my object (which creates InitialDirContext) reads the properties from XML Cache. Can I handle a message that my properties in XML Cache have been changed and in this cases my object reads new properties and calls rebind() to update InitialDirContext?
    Thanks,
    Ivan

    To bind an object into the JNDI tree check the documentation here:
    http://e-docs.bea.com/wls/docs81/jndi/jndi.html#475702
    If this is to be used by all your applications that you deploy on the server check out the startup/shutdown class documentation here:
    http://edocs.bea.com/wls/docs81/ConsoleHelp/startup_shutdown.html
    Cheers
    IV

  • How to add Business Objects to system landscape smsy?

    Hi there,
    at the moment I configure the system landscape (smsy) in our solution manager. We have also BO XI 3.1 installations and I like to add them to the landscape. In transaction smsy I'm going to "Landscape components" -> "Product System" -> "Create New Product System" .. But now I'm not sure about the product and the product version.
    Any idea?
    Thanks and have a nice weekend,
    Max

    Hello,
    You may want to review  SAP Note 1507629   Preparing a BOE system for Service Sessions in Sol. Manager
    There are two PDF files EGI_SBOP_EWA_Part1.pdf and EGI_SBOP_EWA_Part2.pdf attached.
    They show how to define the system in SMSY.
    Additionally you will need Note  1357901 CA: Managed System Setup for SAP BusinessObjects Enterprise
    Because this is how the data will be collected.
    And lastly once you have setup the managed system and setup  the entries in SMSY, you then can create an EWA.
    Hope this helps you out.
    Regards,
    Paul

Maybe you are looking for