droptarget

how to use droptarget in AS3?

筅森魡賤 提交于 2019-12-13 08:26:06
问题 I need to convert this AS2 code to AS3. on (release) { stopDrag(); this.MOR1.zzz.gotoAndStop(1); if (this._droptarget == "/lcd5") { this.MOR1.zzz.shekl.gotoAndStop(1); _root.nor.gotoAndStop(3); } else { this.MOR1.zzz.shekl.gotoAndStop(4); _root.nor.gotoAndStop(2); } if (this._droptarget == "/lcd1") { setProperty(this, _x, -731.7); setProperty(this, _y, 626.4); } } Please help me. Thank you... 回答1: First off, you're going to need to start using event listeners. Now to the main issue.

Java Drag and drop on OS X reports Move instead of Copy

心已入冬 提交于 2019-12-07 12:33:26
问题 Update/status: Bug is reported to Oracle and currently still open/unresolved: https://bugs.openjdk.java.net/browse/JDK-8054325 I've found a strange bug, which only manifests itself on Java 7 and 8 on OS X, not in Java 6, neither on Java 7 Windows. Below is the extracted bug removing as much unneeded code as possible. It leaves us with a small table and a button, where we can drag the cell from the table on top of the button. In our production code we are using a TransferHandler that has COPY

Java Drag and drop on OS X reports Move instead of Copy

浪子不回头ぞ 提交于 2019-12-05 20:48:13
Update/status: Bug is reported to Oracle and currently still open/unresolved: https://bugs.openjdk.java.net/browse/JDK-8054325 I've found a strange bug, which only manifests itself on Java 7 and 8 on OS X, not in Java 6, neither on Java 7 Windows. Below is the extracted bug removing as much unneeded code as possible. It leaves us with a small table and a button, where we can drag the cell from the table on top of the button. In our production code we are using a TransferHandler that has COPY_OR_MOVE as source action. We have two targets, one DropTarget accepts as MOVE , the other accepts as