Drag and drop activity
Hi all I am new to action script, plz can any 1 guide me to sort this problem. This is a drag n drop activity, there are 6 drag movie clips and 3 drop box which displays two correct answer one below the other. I am not able to control the counter, if any one help me out, it would be great. Thanks in advance.
Here is my code....
stop();
import flash.events.Event;
var drag_arr:Array = new Array(drag1,drag2,drag3,drag4,drag5,drag6);
var drop_arr1:Array = new Array(mc1_1,mc1_2);
var drop_arr2:Array = new Array(mc2_1,mc2_2);
var drop_arr3:Array = new Array(mc3_1,mc3_2);
var ans_arr:Array = new Array(1,2,2,3,1,3);
var dragX_arr:Array=new Array();
var dragY_arr:Array=new Array();
var drop1_pos:int = 0;
var drop2_pos:int = 0;
var drop3_pos:int = 0;
for (var k:int; k<drop_arr1.length; k++)
drop_arr1[k].visible = false;
drop_arr2[k].visible = false;
drop_arr3[k].visible = false;
for (var i:int=0; i<drag_arr.length; i++)
//drag_arr[i].buttonMode=true
//drag_arr[i].mouseChildren=false
drag_arr[i].id = ans_arr[i];
drag_arr[i].num = i;
drag_arr[i].addEventListener(MouseEvent.MOUSE_DOWN,startdrag);
function startdrag(e:Event)
e.currentTarget.startDrag();
trace(e.currentTarget.txt.text);
for (var j:int=0; j<drag_arr.length; j++)
dragX_arr.push(drag_arr[j].x);
dragY_arr.push(drag_arr[j].y);
//trace(e.currentTarget.id+"==e.currentTarget.id");
e.currentTarget.addEventListener(MouseEvent.MOUSE_UP,stopDragging);
function stopDragging(e:Event)
//trace("stop draf");
e.currentTarget.stopDrag();
if (e.currentTarget.id == 1)
trace("1 st");
trace(drop1_pos+"==drop1_pos");
if (e.currentTarget.dropTarget.parent.hitTestObject(drop1))
trace("condition");
e.currentTarget.x = drop_arr1[drop1_pos].x;
e.currentTarget.y = drop_arr1[drop1_pos].y;
e.currentTarget.enabled = false;
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN,startdrag);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_UP,stopDragging) ;
trace(drop1_pos+"==drop1_pos");
drop1_pos++;
else
drag_arr[e.currentTarget.num].x = dragX_arr[e.currentTarget.num];
drag_arr[e.currentTarget.num].y = dragY_arr[e.currentTarget.num];
if (e.currentTarget.id == 2)
trace("2 st");
if (e.currentTarget.dropTarget.parent.hitTestObject(drop2))
e.currentTarget.x = drop_arr2[drop2_pos].x;
e.currentTarget.y = drop_arr2[drop2_pos].y;
e.currentTarget.enabled = false;
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN,startdrag);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_UP,stopDragging) ;
trace(drop2_pos+"==drop2_pos");
else
drag_arr[e.currentTarget.num].x = dragX_arr[e.currentTarget.num];
drag_arr[e.currentTarget.num].y = dragY_arr[e.currentTarget.num];
drop2_pos++;
if (e.currentTarget.id == 3)
trace("3 st");
if (e.currentTarget.dropTarget.parent.hitTestObject(drop3))
e.currentTarget.x = drop_arr3[drop3_pos].x;
e.currentTarget.y = drop_arr3[drop3_pos].y;
e.currentTarget.enabled = false;
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN,startdrag);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_UP,stopDragging) ;
trace(drop3_pos+"==drop3_pos");
else
drag_arr[e.currentTarget.num].x = dragX_arr[e.currentTarget.num];
drag_arr[e.currentTarget.num].y = dragY_arr[e.currentTarget.num];
drop3_pos++;
You need to explain more... what counter? control it how?
Similar Messages
-
Drag and Drop game with only two targets
I created a drag and drop activity where their are five boxes that are supposed to go in to two columns in any order. I found a tutorial online that I based this activity off of.
The problem is that the tutorial shows you how to make a target for each mc which has worked for all the activities I've made except for this one where I need only two targets. How would I change it so I can have multiple mc's drop on to one target?
This is my AS:
var score:Number = 0;
var objectoriginalX:Number;
var objectoriginalY:Number;
growing_mc.buttonMode = true;
growing_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
growing_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
gorging_mc.buttonMode = true;
gorging_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject);
gorging_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
dormancy_mc.buttonMode = true;
dormancy_mc.addEventListener(MouseEvent.MOUSE_DOWN , pickupObject);
dormancy_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
cystform_mc.buttonMode = true;
cystform_mc.addEventListener(MouseEvent.MOUSE_DOWN , pickupObject);
cystform_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
hosttrans_mc.buttonMode = true;
hosttrans_mc.addEventListener(MouseEvent.MOUSE_DOW N, pickupObject);
hosttrans_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
function pickupObject(event:MouseEvent):void {
event.target.startDrag(true);
event.target.parent.addChild(event.target);
objectoriginalX = event.target.x;
objectoriginalY = event.target.y;
function dropObject(event:MouseEvent):void {
event.target.stopDrag();
var matchingTargetName:String = "target" + event.target.name;
var matchingTargetisplayObject = getChildByName(matchingTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == matchingTarget){
event.target.removeEventListener(MouseEvent.MOUSE_ DOWN, pickupObject);
event.target.removeEventListener(MouseEvent.MOUSE_ UP, dropObject);
event.target.buttonMode = false;
event.target.x = matchingTarget.x;
event.target.y = matchingTarget.y;
score++;
scoreField.text = String(score);
} else {
event.target.x = objectoriginalX;
event.target.y = objectoriginalY;
if(score == 5){
response_mc.gotoAndStop(2);var matchingTargetName:String =(event.target.name).substring(0, 1);
Change the name of the target to A and B and the mc A1, A2, A3, A4... and B1, B2,B3... -
Hi,
I have a Corporate licenced version of Captivate 6. I would like to know how to use the Drag and Drop interaction.
Thanking you.
With regards
LeenaWhich version of Captivate 6 do you have? Drag and drop activity is included in Captivate 6.1 onwards. For earlier versions, your best bet would be to buy Infosemantics widget here:
http://infosemantics.com.au/adobe-captivate-widgets/drag-and-drop/which-adobe-drag-and-dra g-and-drop-widget-comparison
Sreekanth -
I installed trial Parallel 6. I can only drag and drop from windows desk top to mac desktop, iMac. I can nod do the same dragging from Mac to windows XP. I have the + sign but nothing happens. I reinstalled the tools. No change. Is there a solution?
thanks.Which version of Captivate 6 do you have? Drag and drop activity is included in Captivate 6.1 onwards. For earlier versions, your best bet would be to buy Infosemantics widget here:
http://infosemantics.com.au/adobe-captivate-widgets/drag-and-drop/which-adobe-drag-and-dra g-and-drop-widget-comparison
Sreekanth -
How do I get the student's answers to show on the next slide for drag and drop interaction?
I'm working with Captivate 7 on a computer running Windows 8.
I created a simple, one-to-one drag and drop activity using the Drag and Drop Wizard.
I want the student's answers to show on the next slide. Specifically, I want the drop source to show with the drag target that the student connected to the drag source. This way the student can review his/her answers while the program discusses the correct answers.
Is there anyway to do this?* You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).
* If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily. -
Captivate 8 drag and drop interaction
Hello,
just having a look at the new captivate 8 and when i try and make a drag and drop question i go to the normal place of window> drag and drop. but the problem is the drag and drop option is grayed out - could this be because i am only running it on a trial copy?Hi, I'm evaluating Captivate 8 and had the same question as SuzySu.
If my client wants a drag and drop activity, would I need to create a non-responsive project and because being able to view on mobile is also required, would I need to create a separate responsive project without drag and drop? If so, when publishing the projects, would the proper project be automatically selected based on their viewing platform?
Also, is there a list off all interactions that will or will not work with a responsive theme?
Thank you! -
Drag and Drop not being recorded properly.
I'm a fairly experienced Captivate user using version 3.0. I am trying to record some drag and drop activity in an Oracle application and I just can't get it to work. To be clear, I am NOT trying to create a drag and drop quiz question (so please don't tell me how to create drag and drop quiz questions, I already know how). I am trying to record the dragging of an icon from one area within the app to another (the actual visual drag). Whether I set the video to record full motion or trigger full motion recording with F9 (and stop it with F10), all I get is the initial click of the object and then the object after it has been set down in it's new location. The actual drag of the object isn't recorded. I checked my Flash player - it's version 9. Any suggestions?
Thanks!!Hi there
First, I'd suggest performing what I call a simple "sanity check". This should reveal to you whether the issue is with Captivate generically or if it's just that Captivate has issues with this one application.
So try this. Open Captivate and minimize all apps. Then record dragging an icon from one location to another on your desktop. If Captivate doesn't record that properly, you have a Captivate issue. If it does, you know it's an issue with the application and the way it interacts with Captivate. In that case you need to consider other avenues. Perhaps use something like Camtasia Studio or Jing to capture, save as SWF and drop it where you need it in Captivate.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Calendar Drag and Drop not working
Hi All,
I am trying drag and drop feature in calendar. I added Calendar Drop Attribute and associated a listener from my backing bean. Upon Drag and drop activity listener is not fired.
Below is the xml fragment
<af:calendarDropTarget dropListener="#{backingBeanScope.cartBackBean.calendarDropAction}"
actions="COPY"/>
</af:calendar>
And the listener code
public DnDAction calendarDropAction(DropEvent dropEvent) {
System.out.println("abc");
Transferable transferable = dropEvent.getTransferable();
CalendarDropSite dropSite = (CalendarDropSite)dropEvent.getDropSite();
java.util.Date dropSiteDate = dropSite.getDate();
CalendarActivity.TimeType timeType = dropSite.getTimeType();
CalendarActivity activity = (CalendarActivity)transferable.getData(DataFlavor.getDataFlavor(CalendarActivity.class));
System.out.println(dropSiteDate);
return dropEvent.getProposedAction();
"abc" is not printed , I ran the app in debug mode and control is not coming to managedBean. However I can see the drag functionality enabled on the calendar.
Please help !!!
Thanks
Sandeep.G
Edited by: user21786 on Feb 10, 2011 5:03 AMCan you please check with the documentation to ensure that you have done it correctly:
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_calendar.htm#CHDHEDEH
The drag & drop support for Calendar works fine as in the demo sample below:
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/calendarDropTarget.jspx
Thanks,
Navaneeth -
Embedded drag and drop not working
Hi,
Hoping someone can help as have got 90% of the way through a project and hit a wall at the final (end-of-level-baddie) problem.
I'm currently embedding old AS2 activities (build by a second party - now not operating/contactable) into a new AS3 menu system.
Most of them I've managed to port across and embed without issue. Unfortunately embedding the drag and drop activity is proving to be, for want of a better phrase, a complete drag.
I've managed to decompile the code, so have put a few trace statements in to find out what might be going wrong. Looking in the collision detection part of the code, the problem appears to be that when the activity is embedded, although the index of the drag clip is returned fine with its corresponding index number, the index of the drop clip is returned as 'undefined'.
The activity works fine in a standalone flash player, with both indexes returning their respective numbers. However not so when it's embedded.
I'm guessing that this is a levels issue, but is there any easy way that I can force the AS2 drag and drop game to act as self-contained and ignore its parent holding clip?
Thanks in advanceHi kglad,
Thanks for replying (you've helped me out before :-) )
A search of the classes reveals only one mention of getDepth() on a text field, which is irrelevant at the mo (as the engine's just creating image drag and drops)
The main activity stage is created by an EngineClass (which drives all the activities I've been adapting, but wasn't a problem with less layer critical ones).
There are three lines I can see where the activity stage is created using 'getNextHighestDepth()'
this.mWhere.createEmptyMovieClip("activity_mc", this.mWhere.getNextHighestDepth());
this.mWhere.createEmptyMovieClip("activityMask_mc", this.mWhere.getNextHighestDepth());
this.mWhere.createEmptyMovieClip("toolbars_mc", this.mWhere.getNextHighestDepth());
All the drags and drops are then created within this activity_mc. When I run the activity as standalone (where it works), and drag an item onto a drop zone, the traces I set up on the Drag and Drop items report back the following:
DragObject: _level0.activity_mc.container_mc.dropItem2.dropSkin.greyBorder.whiteBG
DropArea: _level0.activity_mc.container_mc.dropItem2.dropSkin.greyBorder
When I run it embedded in the AS2 wrapper it then fires back the following after an attempted drop:
DragObject: undefined
DropArea: undefined
...and the item refuses to drop on the dropzone, returning to where it came from.
The tiny amount of knowledge I have makes me (probably mistakenly) assume that if I could place the activity_mc layer on root, then everything would be contained within the embedded clip and the layering wouldn't go so wonky. But in reality I've got no idea! To make matters worse, the original drag and drop activity is itself inside another as2 wrapper which contains some navigation buttons... -
Drag and drop option not active - Captivate 8
Is there a particular slide you need to use or something else you need to have on your slide in order to activate the drag and drop menu item? All other menu items in the Interaction menu are active, but drag and drop.
Drag and drop is not available for Responsive projects.
Sreekanth -
Drag and Drop only to be submitted with activation of a submit all button
I have included a few Drag and drop questions into a summative assessment task. I would like the user to be able to browse through their answers and change them until the point that they activate the "Submit All Button". I am using Captivate 7. Can this be done?
Not at all, sorry, and I doubt someone else will offer you a solution, since you'll want it to happen for all question slides + Drag&Drop. Maybe you don't know that they call me the 'workaround' queen
-
Activating Drag and Drop As window in jdevstudio1013
Dear All,
I'm using jdevstudio1013.I don't see Drag And Drop As Window below Component window.Instead I see Property Inspecter Window .
How to activate Drop And Drag As window?
With rgds,
ShrinawHi,
The project is set as a JSF project.
And yes, there are the following error messages in the console when trying to drop a method into the page. The create command button / link dialog appears, and after choosing an option, nothing happens.
2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.bali.xml.model.XmlModel$4@ebad43 on model orac
le.jdevimpl.webapp.jsp.JspXmlModel@eefa28; txn name=internal txn
oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil$InvalidArgumentXmlException: Body node is not valid location for inserting Messages element. Try inserting at another location in the document.
at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil._doInsertNodes(ModelDomUtil.java:1716)
at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil.doInsertNodes(ModelDomUtil.java:1599)
at oracle.jdevimpl.webapp.common.WebAppXmlModel.insertNodesImpl(WebAppXmlModel.java:124)
at oracle.bali.xml.model.XmlModel$4.performTask(XmlModel.java:1414)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.bali.xml.model.XmlModel.insertNodes(XmlModel.java:1384)
at oracle.jdevimpl.webapp.editor.LayoutXmlView$1.performTask(LayoutXmlView.java:194)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.jdevimpl.webapp.editor.LayoutXmlView.insertNodes(LayoutXmlView.java:181)
at oracle.bali.xml.model.AbstractModel$1.performTask(AbstractModel.java:466)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:190)
at oracle.bali.xml.model.AbstractModel.insertXmlKey(AbstractModel.java:447)
at oracle.adfdtinternal.view.faces.addin.ADFBindingXmlContextListener$AddMessagesPostInsertionTask.performTask(ADFBindingXmlContextListener.java:227)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.adfdtinternal.view.common.binding.operation.CreateOperation$1.
performTask(CreateOperation.java:170)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(Sta
ndardTransactionTask.java:167)
at oracle.adfdtinternal.view.common.binding.operation.CreateOperation.apply(CreateOperation.java:147)
at oracle.bali.xml.model.datatransfer.operation.PerformOperationAction.actionPerformed(PerformOperationAction.java:39)
at oracle.bali.xml.share.ActionProxy.actionPerformed(ActionProxy.java:47)
at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy.actionPerformed(DropMenuInvoker.java:235)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.jdevimpl.webapp.editor.LayoutXmlView$1@bc1eb2
on model oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=internal
txn (exception previously logged)
2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.bali.xml.model.AbstractModel$1@833c98 on model
oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=Insert Messages (exception previously logged)
2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.adfdtinternal.view.faces.addin.ADFBindingXmlContextListener$AddMessagesPostInsertionTask@1ff5bf1 on model oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=Add faces messages task (exception previously logged)
2007.07.30. 9:34:39 oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.adfdtinternal.view.common.binding.operation.CreateOperation$1@1ed3ca7 on model oracle.jdevimpl.webapp.editor.LayoutXmlView@18587fe; txn name=Create ADF Command Button (exception previously logged)
oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil$InvalidArgumentXmlException: Body node is not valid location for inserting Messages element. Try inserting at another location in the document.
at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil._doInsertNodes(ModelDomUtil.java:1716)
at oracle.jdevimpl.webapp.model.content.dom.util.ModelDomUtil.doInsertNodes(ModelDomUtil.java:1599)
at oracle.jdevimpl.webapp.common.WebAppXmlModel.insertNodesImpl(WebAppXm
lModel.java:124)
at oracle.bali.xml.model.XmlModel$4.performTask(XmlModel.java:1414)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.bali.xml.model.XmlModel.insertNodes(XmlModel.java:1384)
at oracle.jdevimpl.webapp.editor.LayoutXmlView$1.performTask(LayoutXmlView.java:194)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.jdevimpl.webapp.editor.LayoutXmlView.insertNodes(LayoutXmlView.java:181)
at oracle.bali.xml.model.AbstractModel$1.performTask(AbstractModel.java:466)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:190)
at oracle.bali.xml.model.AbstractModel.insertXmlKey(AbstractModel.java:447)
at oracle.adfdtinternal.view.faces.addin.ADFBindingXmlContextListener$AddMessagesPostInsertionTask.performTask(ADFBindingXmlContextListener.java:227)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.adfdtinternal.view.common.binding.operation.CreateOperation$1.performTask(CreateOperation.java:170)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:167)
at oracle.adfdtinternal.view.common.binding.operation.CreateOperation.apply(CreateOperation.java:147)
at oracle.bali.xml.model.datatransfer.operation.PerformOperationAction.a
ctionPerformed(PerformOperationAction.java:39)
at oracle.bali.xml.share.ActionProxy.actionPerformed(ActionProxy.java:47)
at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy.actionPerformed(DropMenuInvoker.java:235)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Thanks,
Patrik
(PS.: Is it the right thread or should I start another one?) -
Drag and Drop (re-order) Thumbnails in Organizer
I am using Photoshop Elements version 5.0.2
I would like to re-order pictures in an order that will make sense for me in my business. I suppose I can go through each pix and change the time on them, so I can then sort by time stamp.
Is there an easier way to do this? I was hopeful that I could drag and drop them in Thumbnail view - but I cannot.
Thank you,
Jamie>Is there anyway to delete the photos in the main well, without losing them from my collection?
As I understand the design, the main well is intended to be all the photos that you are managing with Photoshop Elements.
Collections are used to display a specific group of those photos in your chosen sequence for any given activity.
I suspect that since you are using a consumer product such as Photoshop Elements for your business purpose, you may need to make some compromises like having a default (the main photo well) display sequence which you see first when starting PSE that is not what you would choose.
This is not bad if PSE does what you want - just additional steps to switch to the Collection view and also to maintain (drag and drop) the sequencing of the collection when you add additional photo files to a Collection. -
Problems with ListViews Drag and Drop
I'm surprised that there isn't an Active X control that can do this more
easily? Would
be curious to find out if there is - although we aren't really embracing the
use of
them within Forte because it locks you into the Microsoft arena.
---------------------- Forwarded by Peggy Lynn Adrian/AM/LLY on 02/03/98 01:33
PM ---------------------------
"Stokesbary, Michael" <[email protected]> on 02/03/98 12:19:52 PM
Please respond to "Stokesbary, Michael" <[email protected]>
To: "'[email protected]'" <[email protected]>
cc:
Subject: Problems with ListViews Drag and Drop
I am just curious as to other people's experiences with the ListView
widget when elements in it are set to be draggable. In particular, I am
currently trying to design an interface that looks a lot like Windows
Explorer where a TreeView resides on the left side of the window and a
ListView resides on the right side. Upon double clicking on the
ListView, if the current node that was clicked on was a folder, then the
TreeView expands this folder and the contents are then displayed in the
ListView, otherwise, it was a file and it is brought up in Microsoft
Word. All this works great if I don't have the elements in the ListView
widget set to be draggable. If they are set to be draggable, then I am
finding that the DoubleClick event seems to get registered twice along
with the ObjectDrop event. This is not good because if I double click
and the current node is a folder, then it will expand this folder in the
TreeView, display the contents in the ListView, grab the node that is
now displayed where that node used to be displayed and run the events
for that as well. What this means, is that if this is a file, then Word
is just launched and no big deal. Unfortunately, if this happens to be
another directory, then the previous directory is dropped into this
current directory and a recursive copy gets performed, giving me one
heck of a deep directory tree for that folder.
Has anybody else seen this, or am I the only lucky one to experience.
If need be, I do have this exported in a .pex file if anybody needs to
look at it more closely.
Thanks in advance.
Michael Stokesbary
Software Engineer
GTE Government Systems Corporation
tel: (650) 966-2975
e-mail: [email protected]here is the required code....
private static class TreeDragGestureListener implements DragGestureListener {
public void dragGestureRecognized(DragGestureEvent dragGestureEvent) {
// Can only drag leafs
JTree tree = (JTree) dragGestureEvent.getComponent();
TreePath path = tree.getSelectionPath();
if (path == null) {
// Nothing selected, nothing to drag
System.out.println("Nothing selected - beep");
tree.getToolkit().beep();
} else {
DefaultMutableTreeNode selection = (DefaultMutableTreeNode) path
.getLastPathComponent();
if (selection.isLeaf()) {
TransferableTreeNode node = new TransferableTreeNode(
selection);
dragGestureEvent.startDrag(DragSource.DefaultCopyDrop,
node, new MyDragSourceListener());
} else {
System.out.println("Not a leaf - beep");
tree.getToolkit().beep();
} -
Flash Drag and Drop Template in Captivate. *HELP*
Good morning.
I am attempting to use the drag and drop learning interaction
that comes pre-packaged with Flash CS3 and import it into Captivate
for use in a Captivate based e-learning exercise.
I create the drag and drop just fine in Flash, and it looks
perfect when I publish it in Flash, etc.
When I attempt to use the EXACT same SWF in Captivate,
however, it does not work. I can move the drags around the screen,
but they will not "drop" where they are supposed to.
Thinking maybe I broke the template, I went ahead and just
imported it 100% unchanged from Flash into Captivate (without me
messing around with it changing things around) and it does the
exact same thing.
I have successfully used my own homemade flash "widgets" in
Captivate, to include like click and reveal type interactions...for
whatever reason, though, I can't get this one to work, even though
I know it works perfectly in Flash.
The .swf file was developed using ActionScript 2.0 in Flash
and I tried publishing it with Flash 9 and Flash 8 as the setting,
both do the same thing.
Help!!!?
Thanks.
RobHi R
Note that the Border simply adds space to the project so the
playback controls aren't covering part of your movie. Assuming you
want that to continue AND have a playback control, you might resize
the project so the playback control is included in the main movie
as well as being placed in an area that doesn't possibly obscure
any screen activity.
Cheers... Rick
Maybe you are looking for
-
How to rename a column name in a table? Thanks first!
I tried to drop a column age from table student by writing the following in the sql plus environment as : SQL> alter table student drop column age ; but I found the following error ORA-00905: 缺少关键字 (Lack of Key word) I have oracle enterprise edition
-
can not update photoshop keep getting this error Adobe Bridge CS5 4.0.5 Update There was an error downloading this update. Please quit and try again later. Adobe Extension Manager CS5 5.0 Update There was an error downloading this update. Plea
-
Releasing Transport task from either schedule manager or change request
Hi Gurus, I had a doubt regarding releasing of tasks of a transport request. Is there any way where I can release a task along with the transport request in the Correction transaction itself? Or is it a standard behavior of SAP Solman process where i
-
Table headings and column/row sizes
I have mapped my FM table format to a table style defined in my CSS. However, I have the following issues with the resulting RoboHelp tables: I have a header row in the FrameMaker table, but the header doesn't come over into RH. All of the table rows
-
I want to stream a movie from my MacBook pro to the tv. What cab els do I need?