Drag and drop "objects" in labview runtime

Hello,
At the moment I'm looking for a solution to make content movable in de runtime.
I'm working on a test sytem that can be connected to many different systems. It wil be great to give the end user the opportunity to place the components in the order they will be in the system without having any labview programming experience.
A simple example to make my problem clear:
In the front panel there is only one indicator, just placed on some position on the screen
I want the enduser give the opportunity to place this indicator to the position he want.
Is it possible to make something like this?
Thanks in advantage!
Solved!
Go to Solution.

To make something more clear:
I want to make some "objects" in the user interface dragable.
See screenshots for my idea. The end user should be able to place the indicators on the screen where ever he or she wants.
Attachments:
moveable controls1.JPG ‏16 KB
moveable controls2.JPG ‏51 KB

Similar Messages

  • How to add text to a drag and drop object

    Hi everyone, I am quite a beginner with Flash so do excuse
    me. First, I am not sure if what I want to achieve may actually be
    impossible with Flash. I presently use MX 2004, but will shortly be
    upgrading to CS3. But if you know the answer for MX 2004 that would
    be really useful for now.
    I am writing a digital fiction story, and I want to create
    drag and drop objects. This I have managed to do. But I would like
    these drag and drop objects to also reveal text when they are
    actually pressed on. I have had no success so far in being able to
    achieve the two effects together.
    Does anyone know how I can achieve this? If, by chance, you
    know the action script that would be great. If you can explain to
    me in simple terms how I can achieve this I really would be
    grateful.
    Thanking you,
    Mary

    The script I posted would work on the main timeline - not in
    the timeline of the clip itself.
    So you made a movieclip out of the image and gave it the
    instance name "myclip". That's good.
    You edited that clip and added a dynamic text box with
    instance name "mytext". Be careful not to confuse the "instance"
    name of the text box with the "Var:" name. "myclip" should be the
    instance name. Also be careful to make sure you uncheck the
    "selectable" box. Edit your clip and click on the textbox to select
    it and look in the properties panel. There should be a button with
    Ab on it. If it is white background (highly likely), click it so it
    is not white. If the text is selectable, it will interfere with
    your button functions.
    While there is nothing wrong with creating nested clips
    within your movieclips, unless you plan to target them for
    something, there is no benefit. The only thing that needs an
    instance name inside the myclip is the textbox (based on what you
    are trying to do).
    You don't need any actionscript in the movieclip itself. If
    you can learn to place all your AS on the root timeline, you will
    be well ahead.
    If you placed that AS inside the clip, Flash wouldn't know
    what to do with it.
    Technically you can place the AS inside the clip on the layer
    you created but, if you did that, you would need to modify the
    script to the following:
    this.onPress = function() {
    this.mytext.text = "stop pressing so hard";
    startDrag(this);
    this.onRelease = function() {
    this.mytext.text = "";
    stopDrag();

  • Rollover text on a drag and drop object

    Hi folks, I wondered if someone could help me with this
    problem. Last week I was adding text to a drag and drop object on
    the press of a button and release of a button. This week, I am
    trying to get the drag and drop object to reveal text when the
    mouse rolls over it and again when the mouse releases it. I thought
    it should be pretty easy to fathom out the script for this, because
    I was given a lot of help last week. But I put in the attached
    code, and the object does not drag and drop, and neither does it
    show any text when the mouse rolls over it and off it.
    Can anyone tell me what I am doing wrong?
    Thanking you,
    Marchan

    The script I posted would work on the main timeline - not in
    the timeline of the clip itself.
    So you made a movieclip out of the image and gave it the
    instance name "myclip". That's good.
    You edited that clip and added a dynamic text box with
    instance name "mytext". Be careful not to confuse the "instance"
    name of the text box with the "Var:" name. "myclip" should be the
    instance name. Also be careful to make sure you uncheck the
    "selectable" box. Edit your clip and click on the textbox to select
    it and look in the properties panel. There should be a button with
    Ab on it. If it is white background (highly likely), click it so it
    is not white. If the text is selectable, it will interfere with
    your button functions.
    While there is nothing wrong with creating nested clips
    within your movieclips, unless you plan to target them for
    something, there is no benefit. The only thing that needs an
    instance name inside the myclip is the textbox (based on what you
    are trying to do).
    You don't need any actionscript in the movieclip itself. If
    you can learn to place all your AS on the root timeline, you will
    be well ahead.
    If you placed that AS inside the clip, Flash wouldn't know
    what to do with it.
    Technically you can place the AS inside the clip on the layer
    you created but, if you did that, you would need to modify the
    script to the following:
    this.onPress = function() {
    this.mytext.text = "stop pressing so hard";
    startDrag(this);
    this.onRelease = function() {
    this.mytext.text = "";
    stopDrag();

  • Drag and Drop objects with JavaFX properties

    Has anyone tried to implement drag and drop functionality with objects containing JavaFX properties? The issue I'm running into is that the objects appear to need to be serializable, and the JavaFX properties are not serializable. I can implement Externalizable instead of Serializable, and basically serialize the values contained by the FX properties, but of course I lose any bindings by doing this (as the listeners underlying the bindings are not serialized).
    The [url http://docs.oracle.com/javafx/2/api/javafx/scene/input/Clipboard.html]javadocs for Clipboard state "In addition to the common or built in types, you may put any arbitrary data onto the clipboard (assuming it is either a reference, or serializable. See more about references later)" but I don't see any further information about references (and at any rate, this doesn't really make sense since anything that's serializable would be a reference anyway). Is there a special DataFormat I can use to specify a reference in the local JVM so the reference gets passed without serialization?
    I know this might not make sense without a code example; I just thought someone might have come across this closely enough to recognize the problem. I'll try to post a code example tonight...

    Here's pretty much the simplest example I can come up with. I have a real-world example of needing to do this, but the object model for the real example is quite a bit more complex.
    For the toy example, imagine we have a list of projects, some employees, and we want to assign each project to one or more employees. I have a Project class with a title and assignee. (In real life you can imagine other properties; due date, status, etc.) I'll keep a ListView with a bunch of unassigned projects (titles but assignees equal to null) and then a ListView for each of the employees.
    To assign a project to an employee, the user should be able to drag from the "master" list view to one of the employee list views. When the project is dropped, we'll create a new project, set the assignee, and bind the title of the new project to the title of the project which was dragged. (Remember we want to be able to assign a single project to multiple employees.)
    So here's the first shot:
    A couple of simple model classes
    Project.java
    import java.io.Externalizable;
    import java.io.IOException;
    import java.io.ObjectInput;
    import java.io.ObjectOutput;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    public class Project {
         private final StringProperty title ;
         private final ObjectProperty<Employee> assignee ;
         public Project(String title) {
              this.title = new SimpleStringProperty(this, "title", title);
              this.assignee = new SimpleObjectProperty<Employee>(this, "assignee");
         public Project() {
              this("");
         public StringProperty titleProperty() {
              return title ;
         public String getTitle() {
              return title.get() ;
         public void setTitle(String title) {
              this.title.set(title);
         public ObjectProperty<Employee> assigneeProperty() {
              return assignee ;
         public Employee getAssignee() {
              return assignee.get();
         public void setAssignee(Employee assignee) {
              this.assignee.set(assignee);
         @Override
         public String toString() {
              String t = title.get();
              Employee emp = assignee.get();
              if (emp==null) {
                   return t;
              } else {
                   return String.format("%s (%s)", t, emp.getName()) ;
    }Employee.java
    import java.io.Externalizable;
    import java.io.IOException;
    import java.io.ObjectInput;
    import java.io.ObjectOutput;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    public class Employee {
         private StringProperty name ;
         public Employee(String name) {
              this.name = new SimpleStringProperty(this,"name", name);
         public StringProperty nameProperty() {
              return name ;
         public String getName() {
              return name.get();
         public void setName(String name) {
              this.name.set(name);
    }and the application
    DnDExample.java
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.ListCell;
    import javafx.scene.control.ListView;
    import javafx.scene.control.TextField;
    import javafx.scene.input.ClipboardContent;
    import javafx.scene.input.DataFormat;
    import javafx.scene.input.DragEvent;
    import javafx.scene.input.Dragboard;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.TransferMode;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class DnDExample extends Application {
         private static final DataFormat PROJECT_DATA_FORMAT = new DataFormat("com.example.project"); // is there something special I can use here?
         @Override
         public void start(Stage primaryStage) {
              final HBox root = new HBox(5);
              final ListView<Project> allProjects = new ListView<Project>();
              final Employee fred = new Employee("Fred");
              final Employee ginger = new Employee("Ginger");
              final ListView<Project> fredsProjects = new ListView<Project>();
              final ListView<Project> gingersProjects = new ListView<Project>();
              final VBox employeeLists = new VBox(5);
              employeeLists.getChildren().addAll(new Label("Fred's Projects"), fredsProjects, new Label("Ginger's Projects"), gingersProjects);
              root.getChildren().addAll(allProjects, employeeLists);
              allProjects.setCellFactory(new Callback<ListView<Project>, ListCell<Project>>() {
                   @Override
                   public ListCell<Project> call(ListView<Project> listView) {
                        return new AllProjectListCell();
              allProjects.setEditable(true);
              final EventHandler<DragEvent> dragOverHandler = new EventHandler<DragEvent>() {
                   @Override
                   public void handle(DragEvent dragEvent) {
                        if (dragEvent.getDragboard().hasContent(PROJECT_DATA_FORMAT)) {
                             dragEvent.acceptTransferModes(TransferMode.COPY);
              fredsProjects.setOnDragOver(dragOverHandler);
              gingersProjects.setOnDragOver(dragOverHandler);
              fredsProjects.setOnDragDropped(new DragDropHandler(fred, fredsProjects.getItems()));
              gingersProjects.setOnDragDropped(new DragDropHandler(ginger, gingersProjects.getItems()));
              allProjects.getItems().addAll(new Project("Implement Drag and Drop"), new Project("Fix serialization problem"));
              Scene scene = new Scene(root, 600, 400);
              primaryStage.setScene(scene);
              primaryStage.show();
         public static void main(String[] args) {
              launch(args);
         private class DragDropHandler implements EventHandler<DragEvent> {
              private final Employee employee ;
              private final ObservableList<Project> itemList;
              DragDropHandler(Employee employee, ObservableList<Project> itemList) {
                   this.employee = employee ;
                   this.itemList = itemList ;
              @Override
              public void handle(DragEvent event) {
                   Dragboard db = event.getDragboard();
                   if (db.hasContent(PROJECT_DATA_FORMAT)) {
                        Project project = (Project) db.getContent(PROJECT_DATA_FORMAT);
                        Project assignedProject = new Project();
                        assignedProject.titleProperty().bind(project.titleProperty());
                        assignedProject.setAssignee(employee);
                        itemList.add(assignedProject);
         private class AllProjectListCell extends ListCell<Project> {
              private TextField textField ;
              private final EventHandler<MouseEvent> dragDetectedHandler ;
              AllProjectListCell() {               
                   this.dragDetectedHandler = new EventHandler<MouseEvent>() {
                        @Override
                        public void handle(MouseEvent event) {
                             Dragboard db = startDragAndDrop(TransferMode.COPY);
                             ClipboardContent cc = new ClipboardContent();
                             cc.put(PROJECT_DATA_FORMAT, getItem());
                             db.setContent(cc);
                             event.consume();
                   this.setEditable(true);
              @Override
              public void updateItem(final Project project, boolean empty) {
                   super.updateItem(project, empty);
                   if (empty) {
                        setText(null);
                        setGraphic(null);
                        setOnDragDetected(null);
                   } else if (isEditing()) {
                        if (textField != null) {
                             textField.setText(getItem().getTitle());
                        setText(null) ;
                        setOnDragDetected(null);
                        setGraphic(textField);                    
                   } else {
                        setText(project.getTitle());
                        setOnDragDetected(dragDetectedHandler);
              @Override
              public void startEdit() {
                   super.startEdit();
                   if (!isEmpty()) {
                        textField = new TextField(getItem().getTitle());
                        textField.setMinWidth(this.getWidth()-this.getGraphicTextGap());
                        textField.focusedProperty().addListener(new ChangeListener<Boolean>() {
                             @Override
                             public void changed(
                                       ObservableValue<? extends Boolean> observable,
                                       Boolean oldValue, Boolean newValue) {
                                  if (! newValue) {
                                       getItem().setTitle(textField.getText());
                                       commitEdit(getItem());
                        setText(null);
                        setGraphic(textField);
                        setOnDragDetected(null);
              @Override
              public void cancelEdit() {
                   super.cancelEdit();
                   if (!isEmpty()) {
                        setText(getItem().getTitle());
                        setGraphic(null);
                        setOnDragDetected(dragDetectedHandler);
                   } else {
                        setText(null);
                        setGraphic(null);
                        setOnDragDetected(null);
              @Override
              public void commitEdit(Project project) {
                   super.commitEdit(project);
                   if (!isEmpty()) {
                        setText(getItem().getTitle());
                        setGraphic(null);
                        setOnDragDetected(dragDetectedHandler);
    }If you try to drag from the list on the left to one of the lists on the right, it will fail pretty quickly and tell you that the data need to be Serializable.
    Simply adding "implements Serializable" to the Project and Employee classes doesn't work, as you find that SimpleStringProperty and SimpleObjectProperty are not Serializable. So instead I can use Externalizable:
    public class Project implements Externalizable {
    @Override
         public void writeExternal(ObjectOutput out) throws IOException {
              out.writeObject(title.get());
              out.writeObject(assignee.get());
         @Override
         public void readExternal(ObjectInput in) throws IOException,
                   ClassNotFoundException {
              setTitle((String)in.readObject());
              setAssignee((Employee)in.readObject());
    }and
    public class Employee implements Externalizable {
         @Override
         public void writeExternal(ObjectOutput out) throws IOException {
              out.writeObject(name.get());
         @Override
         public void readExternal(ObjectInput in) throws IOException,
                   ClassNotFoundException {
              setName((String) in.readObject());
    }This makes the drag and drop work, but if you drop a project on one of the employee lists, then edit the project title in the master list, the binding is not respected. This is because deserialization creates a new SimpleStringProperty for the title, which is not the property to which the title of the new Project object is bound.
    What I really want to do is to be able to drag and drop an object within the same JVM simply by passing the object by reference, rather than by serializing it. Is there a way to do this? Is there some DataFormat type I need?

  • Drag and Drop objects in web app

    Hi all,
    I have a web application in which i have an option to delete the listed items. now i have to place an image of recycle bin on the webpage and to give the utility of delete operation by only dragging the object from list and droping it into recycle bin. How can i do this? Is there any body who have already done this? Any reply will be welcomed.
    And guys no reply for my validation and 'scope' questions.
    Thanx in advance.

    http://www.googleisyourfriend.com/search?q=javascript+drag+and+drop&meta=

  • Drag and drop objects in Captivate 4

    Hi,
    Is it possible to have a user click and drag an object on a slide in captivate 4?
    For e.g. - in a matching type-quiz, instead of creating the usual quiz - I want a user to click and place the correct object in the correct box. Can this effect be achieved?
    Thanks!

    With either (or both) of these Drag and Drop widgets, yes: http://www.infosemantics.com.au/dragdrop

  • Drag and drop object in other object

    Greetings!
    I'm asking myself this question:
    I have this graph in my application and a panel.
    The graph is draggable. How can I drag and drop the graph
    into the panel so that the graph becomes a child of the panel?
    Thanks!

    Jeff Bohrer wrote:
    smercurio_fc wrote:
    Unlike your other annoyance, this one definitely always annoys me.
    Note: The LabVIEW project explorer window isn't the only IDE that does this. Visual Studio does the same thing when you drag and drop a file onto the Solution Explorer window and the target is a folder. So, the behavior is not unique to LabVIEW.
    Thought this would be today!  Thank YOU
    You're quire welcome. I do it all for you.
    X wrote
    CAR anyone?
    I don't think this needs a CAR, since it's not a bug. It just works that way, so there's nothing to fix. Posting an idea would be the better way to handle this.

  • Drag and drop objects on swf (AS2)

    Hi! This is really driving me crazy.
    I'm trying to create a mind mapping online app for thinking maps. See here for an example of thinking maps.
    I want to let users create textfields during runtime and drag and drop them. I managed to do this using createTextField and eventListener.
    I also want to let users insert a shape (let's say a brace) to the swf and drag them around and resize them using handlers.
    Thing is:
    1) I can't click and drag a shape whenever textfields are inserted into the swf. On the stage, wherever I click and drag, one of the textfields is sure to move! And the shape does not move! (I put the shape in a movie clip and tried hitTest & put a button behind it).
    2) For a particular shape, I want to be able to drag  and resize it. To resize, i use _height property or _xscale/_yscale. When i get to resize the shape, i cannot drag it. When I can drag it, I can't resize it.
    Sigh.

    Hi! This is really driving me crazy.
    I'm trying to create a mind mapping online app for thinking maps. See here for an example of thinking maps.
    I want to let users create textfields during runtime and drag and drop them. I managed to do this using createTextField and eventListener.
    I also want to let users insert a shape (let's say a brace) to the swf and drag them around and resize them using handlers.
    Thing is:
    1) I can't click and drag a shape whenever textfields are inserted into the swf. On the stage, wherever I click and drag, one of the textfields is sure to move! And the shape does not move! (I put the shape in a movie clip and tried hitTest & put a button behind it).
    2) For a particular shape, I want to be able to drag  and resize it. To resize, i use _height property or _xscale/_yscale. When i get to resize the shape, i cannot drag it. When I can drag it, I can't resize it.
    Sigh.

  • Highlight destination of drag and drop object

    If drag an object in a drag and drop interaction to its
    destination, is it possible for the destination hotspot to
    highlight itself
    see screenshot:
    http://www.lshtm.ac.uk/dl/programme/sample/highlight.gif
    As you can see as I drag object 0.09 to its destination, the
    destination site highlights itself to yellow. I want to create a
    similar effect in authorware
    thanks in advance
    Jon

    Look at the Overlapping function - set something to trigger
    when that is
    true. That may be hard to do when the mouse is down dragging
    something...
    Erik
    webacity wrote:
    > If drag an object in a drag and drop interaction to its
    destination, is it
    > possible for the destination hotspot to highlight itself
    > see screenshot: <a target=_blank
    class=ftalternatingbarlinklarge
    > href="
    http://www.lshtm.ac.uk/dl/programme/sample/highlight.gif
    > As">
    http://www.lshtm.ac.uk/dl/programme/sample/highlight.gif
    > As</a> you can see as I drag object 0.09 to its
    destination, the destination
    > site highlights itself to yellow. I want to create a
    similar effect in
    > authorware
    > thanks in advance
    > Jon
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/groups?q=macromedia.authorware
    *The Blankenship Caveat: Note that direct linking to http
    content
    through any Authorware icon will likely fail if a proxy
    server is present!*

  • Cannot drag and drop objects

    I starting having an issue with dragging/dropping objects on my screen a few days ago with my Macbook Pro. Say, for instance, there is a document on my desktop that I want to move to another location on my desktop or to a folder...when I left click on the document, a ghost of it appears on my cursor...I can move it around, but I cannot drop it. It takes several hits of the ESC key and clicks of the left mouse button to return the cursor to it's normal state, which also causes the ghost of the object to rush back to the original object icon instead of where I want to drag it. It does not matter if I use the touch pad on the laptop, my wireless house, or my wired mouse, which tells me it is a system issue and not a hardware issue. I am using 10.6.8. I have not voluntarily changed any mouse or desktop settings at all. I also noticed that when I move my cursor to the top left corner, it does not put the computer in a screensaver mode as I have it set up to do. I checked the screen settings and it is still set up to go to the screensaver when I move the cursor to that location. Does anyone know how to fix this?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find nothing has changed after you complete it.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select “Help” from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    As Guest, try the action. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.

  • Drag and Drop objects

    Hello,
    I am new to dreamweaver but have a specific request to create a website with what I can only describe as a 'Dragging' option on objects.
    This is shown here on the javascript of this website http://dunnbypaul.net/js_mouse/
    Is this possible on dreamweaver and if so please can someone explain to me how?
    I would be so ever gratetful,
    Hannah

    If you're asking if Dreamweaver has a magic button or widget that can do all this for you, the answer is no.   You need to bring some client-side coding skills to the table.
    If you're new to this, start with jQuery -- a very popular coding library with lots of available plugins.
    http://jqueryui.com/demos/draggable/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Drag and Drop Objects in Applet

    Is it possible to select and Drag & Drop Graphical Objects from One Applet in one Browser window to Applet in another Browser window?
    Thanks,
    Vattikuti

    Ohhhhhhhhhhhhhhhhhhhhhhhhhh
    thanks a lot Mr. Harrpreeeeeeeeeeeeeeet

  • Drag and Drop objects to the same target

    Can any one assist? I have a box that has six labels that can be dropped on targets on the box. I have all this in place but I want to be able to have label 2 drop onto target 2 and 3, and likewise label 3 drop on to target 2 and 3. All others drop onto their specific targets. This is the script so far but ony for matching object to target. Please be gentle, i'm new to this!!
    event.target.stopDrag();
    var myTargetName:String="target" + event.target.name;
    var myTarget:DisplayObject=getChildByName(myTargetName);
    if (event.target.dropTarget!=null&&event.target.dropTarget.parent==myTarget)
    Can anyone assist please?

    What you could do is have an array assigned to each dragged item that defines the allowed targets for each dragged item and check if the dropTarget is in the array using the indexOf() method.

  • Drag and drop objects to multiple targets

    i have tried a lot of time to make my project into a success... However, it never work... i will be very appreciate with your kind help... please
    this is the link to my swf... all objects are accepted when i drop it into the plastic bin...
    http://megaswf.com/serve/77800/
    var startX:Number;
    var startY:Number;
    var counter:Number = 0;
    two.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    two.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    one.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    one.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    three.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    three.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    twotwo.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    twotwo.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    oneone.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    oneone.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    threethree.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    threethree.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
    event.target.startDrag(true);
    reply_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function dropIt(event:MouseEvent):void {
    event.target.stopDrag();
    var myPlasticBin:String = "target" + "one" || "oneone" ;
    var myPlastic:DisplayObject = getChildByName(myPlasticBin);
    if (event.target.dropTarget != null && event.target.dropTarget.parent== myPlastic){
    reply_txt.text = "Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    event.target.visible = false;
    event.target.x = myPlastic.x;
    event.target.y = myPlastic.y;
    counter++;
    } else {
    reply_txt.text = "Try Again!";
    event.target.x = startX;
    event.target.y = startY;
    if(counter == 6){
            reply_txt.text = "Congrats, you're finished!";
    three.buttonMode = true;
    one.buttonMode = true;
    two.buttonMode = true;
    threethree.buttonMode = true;
    oneone.buttonMode = true;
    twotwo.buttonMode = true;

    yup finally i have done with my problems!!! thanks ^^

  • Drag and drop in APEX 4.1

    Hi everyone,
    I'm wanting to create an APEX application but I am a novice when it comes to APEX.
    One of the key points to my app is that it will need to be able to have drag and drop capabilities. Not drag and drop data but drag and drop objects like in this blog post: http://rutgerderuiter.blogspot.com/2008/07/drag-planboard.html
    That article is pretty much what I want to do. I was just wondering if this is easier in the most recent version as that blog is several years old.
    Does anyone know if there are newer features that make this easier? Any relevant links?
    Thanks!
    -Joe

    Hi jarola,
    I was looking for a sample application that provides a fancy "drag and drop" and found your thread here.
    I checked your link and the online version of the kanban board - veeeery great! Exactly what I'm looking for!! thumbs up :-)
    Since I want to use it in an APEX application, I downloaded your sample application. Import was successful and I also took care of your "readme.txt":
    "When installing application on Application Express release 4      
    After installation, you need modify page template.
    Move #HEAD# substitution string in page template header before javascript libraries."
    But despite, I still get following error message when trying to create a new board:
    TypeError: $.htmldbJSON is not a function
    I tried to place the #HEAD# in different places, nothing seems to help. :-(
    I'm running APEX Version 4.2.0.00.27 .
    It would be glad if somebody can help me to find what I'm doing wrong here...
    Thanks & regards
    FireFighter

Maybe you are looking for

  • Verizon is billing me for data I simply DID NOT USE - huge unexplainable usage every 6 hours - and no one can explain it

    My wife and I both had iphone 4S' on verizon for years with no issues.  My wife recently upgraded to an Iphone 5c and ever since her data usage has gone through the roof.  After talking wtih Apple and Verizon countless times and getting no answers, i

  • Acrobat 9 Pro/Acrobat 9 Pro Extended

    What's the difference between Acrobat 9 Pro and Acrobat 9 Pro Extended? Are the features in the Extended version really necessary?

  • BPM Idoc collection without transformation step

    Hello I have a simple scenario of outbound invoice idocs. The tricky thing now is that I want to collect them within a BPM process. The BPM is basically working as long as I have a transformation step before the sending wich transforms from a multili

  • Visualizer to different screen

    Hi I would like to send the output of the iTunes Visualizer to a screen other than the one that iTunes is open on. Eg. I have a projector or TV connected to my PB (appears as seperate display) and want to be able to show visualizer full screen on the

  • Simple Question... general syntax

    I am clearly new to Oracle. Simple question though. I have a Procedure that runs a fairly involved query. The procedure is called and parameters are passed into it. While I am testing, I just want to DECLARE my variables so it will run properly. I am