Is it possible to create a tree with drag-and-drop functionality using ajax
I saw these samples;
Scott Spendolini's AJAX Select List Demo
http://htmldb.oracle.com/pls/otn/f?p=33867:1:10730556242433798443
Building an Ajax Memory Tree by Scott Spendolini
http://www.oracle.com/technology/pub/articles/spendolini-tree.html
Carl Backstrom ApEx-AJAX & DHTML examples;
http://htmldb.oracle.com/pls/otn/f?p=11933:5:8901671725714285254
Do you think is it possible to create a tree with drag-and-drop functionality using ajax and apex like this sample; http://www.scbr.com/docs/products/dhtmlxTree/
Thank you,
Kind regards.
Tonguç
Hello,
Sure you can build it, I just don't think anyone has, you could also use their solution as well in an APEX page it's just a matter of integration.
Carl
Similar Messages
-
Problem in using AdvanceDataGrid as tree with drag n drop functionality
Hi All,
I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.
Overwritten dragDrop handler event for ADG.
Issues: Not getting target node on which I am dropping currently selected node.Please don’t use this forum for support questions, go use flexcoders or the Adobe forums instead.
Matt
On 2/10/09 11:21 PM, "rakess" <
[email protected]> wrote:
A new discussion was started by rakess in
Developers --
Problem in using AdvanceDataGrid as tree with drag n drop functionality
Hi All,
I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.
Overwritten dragDrop handler event for ADG.
Issues: Not getting target node on which I am dropping currently selected node.
View/reply at Problem in using AdvanceDataGrid as tree with drag n drop functionality <
http://www.adobeforums.com/webx?13@@.59b7e11c>
Replies by email are OK.
Use the unsubscribe <
http://www.adobeforums.com/webx?280@@.59b7e11c!folder=.3c060fa3> form to cancel your email subscription. -
How to get UIComponent of the selected node in af:tree with drag and drop
Hi
Are there examples showing how one could get a UIComponent using DropEvent to be used with a Popup showing as a custom "context menu" at the target node ?
Right now, with dropEvent.getDropComponent, we could only get the tree.
We like to get its selected node so that the popup shows at the node level, not at the tree level.
ThanksHi Frank
Thanks for responding.
We like to show on our custom "context menu" using PopupHints (not using facet name contextmenu) with 3 commandMenuItems.
Since component id is needed by PopupHints to place this custom "context menu", we tried
RichTree dropTree = (RichTree)dropEvent.getDropComponent();
alignId = dropTree.getClientId(context);
// alignId = pt1:pt_region1:1:pt1:pc1:navTree
getClientId returns us the tree id and hence the context menu is placed next to tree.
We like to place the context menu next to a target node of the tree when dragging and dropping.
But we couldn't figure out how to get that node id.
In your suggestion,
List dropRowKey = (List) dropEvent.getDropSite();
RichTree dropComponent = (RichTree) dropEvent.getDropComponent();
dropCompoent.setRowKey(dropRowKey);
how do we then get the id of this node then ? What's the method ?
Thanks Frank -
How I create a label with drag and drop?
I have the next...
I want to be able to move to a label (drag and drop) of swing in my panel contained in jframe.
I already identify the position of the mouse with the method mouseMoved
With the method ---jButton1ActionPerformed--- that I assign to each button I identify the selected component
With the property setBounds of the button I assign the new hubicaci�n of the button.
My questions:
This good which I am doing?
Like sending in value X and the value to him and of the position of the mouse to the button?
Help me, please
NOTE: in the example comence using JButton, but must be labels.
import java.awt.dnd.DropTarget;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import javax.swing.JButton;
* @author Administrador
public class MYCLass extends javax.swing.JFrame implements MouseMotionListener {
private int coorX, coorY;
private JButton general = null;
/** Creates a new instance of MYCLass */
public MYCLass() {
System.out.println("Layout " + this.getContentPane().getLayout());
this.getContentPane().setLayout(null);
addMouseMotionListener(this);
JButton jb = new JButton("1.- El botonsito");
JButton jb2 = new JButton("2.- El botonsito");
jb.setBounds(16,100,100,25);
jb2.setBounds(16,280,100,25);
jb.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
jb2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
this.getContentPane().add(jb);
this.getContentPane().add(jb2);
this.pack();
this.setSize(300, 600);
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
if (this.isFocusable()) {
System.out.println("POSICION X " + coorX);
System.out.println("POSICION y " + coorY);
// general = (JButton) ((javax.swing.JPanel) this.getContentPane().getC).getComponentAt(coorX,coorY);
System.out.println(" boton genral tiene valor: " + general );
// this.setBounds(coorX,coorY,100,25);
System.out.println("Obtuvo el foco.... " + evt.getActionCommand());
// this.getComponentAt();
// System.out.println("Obtuvo el nombre... " + this.getName());
public void mouseDragged(MouseEvent e) {
repaint( );
public void mouseMoved(MouseEvent e) {
if(e.getClickCount() == 2) {
System.out.println("Se presiono 2 veces el MOUSE");
coorX = e.getX();
coorY = e.getY();
System.out.println("POSICION X " + coorX);
System.out.println("POSICION y " + coorY);
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MYCLass().setVisible(true);
}Hello!!!!
I have the next......
It modifies it and I am of the following form
Give its opinion me, thanks!!!!
import java.awt.dnd.DropTarget;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
* @author Administrador
public class MYCLass extends javax.swing.JFrame implements MouseMotionListener {
private int coorX, coorY;
private JLabel labelPrincipal = null;
/** Creates a new instance of MYCLass */
public MYCLass() {
System.out.println("Layout " + this.getContentPane().getLayout());
this.getContentPane().setLayout(null);
addMouseMotionListener(this);
JLabel jl1 = new JLabel("1.- Etiqueta... ");
JLabel jl2 = new JLabel("2.- Etiqueta... ");
jl1.setBounds(16,100,100,25);
jl2.setBounds(16,280,100,25);
jl1.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
System.out.println("Click");
System.out.println("Source... " + e.getSource());
labelPrincipal = (JLabel) e.getSource();
labelPrincipal.setText("Texto especial .....");
jl2.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
System.out.println("Click");
System.out.println("Source... " + e.getSource());
labelPrincipal = (JLabel) e.getSource();
labelPrincipal.setText("Cambia tu texto.....");
this.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
formMouseClicked(evt);
this.getContentPane().add(jl1);
this.getContentPane().add(jl2);
this.pack();
this.setSize(300, 600);
private void formMouseClicked(java.awt.event.MouseEvent evt) {
if (evt.getClickCount() == 2) {
// labelPrincipal.setBounds(coorX,coorY,120,25);
System.out.println( "PRESIONO EL MOUSE.. " + evt.getClickCount());
labelPrincipal = null;
public void mouseDragged(MouseEvent e) {
public void mouseMoved(MouseEvent e) {
if (labelPrincipal != null) {
coorX = e.getX();
coorY = e.getY();
System.out.println("POSICION X " + coorX);
System.out.println("POSICION y " + coorY);
labelPrincipal.setBounds(coorX-1,coorY-35,120,25);
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MYCLass().setVisible(true);
} -
Is it possible to make a graph with drag and drop plots and use it as a control?
I am trying to make a graph with multippel plots to use as a control, the plots should be drag and drop. Is this possible in LV 7.0 or do i have to use c++ or WB?
I second Doc-Doc comment. I am not sure what you are asking.
The attached is an example I found on the NI web-site some time ago. I cannot find the link again so here is a ZIP of what I found in a temp folder on my machine.
Trying to help,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
WF_SketchPad.ZIP 67 KB -
JavaFX Tree with Drag n Drop functionality
Hi
I was trying to build a tree in JavaFX where the all the nodes of the tree will be draggable and droppable. Could anyone show me the way to do it or provide one nice example?
Thanks
RashedHi,
I don't know if it's what you are looking for, but I programmed a small example of pure-JavaFX-DnD just recently and made a blog post about it:
[http://my.opera.com/zilti/blog/proof-of-concept-series-drag-and-drop] -
How can i get the address with drag and drop from address book into pages?
I want to creat a letter withe the new pages. Normaly it was possible to put the adress from the adressbook with drag and drop into the letter. So it was possible to create one letter with many different adresses. But now I didn't find this function any more. How to do ist now?
Withe best regards and I'm sorry for may bad english
KlausSounds like you "upgraded" to Pages 5.
Apple has removed over 90 features from Pages 5.
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Pages '09 should still be in your Applications/iWork folder.
Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
Peter -
SharePoint Server Publishing Infrastructure with drag-and-drop
Hello,
When I activated "SharePoint Server Publishing Infrastructure" future, I can no longer use drag-and-drop functionality between two libraries (eg. drag from Document Library to MyDoc library). When I disable it, drag and drop is possible.
But I need both of this functionalities, because i use Managed navigation. What should I do?
Thanks in advance,
TomazHi Tomaz,
According to your description, I could reproduce this issue as:
1. Create a web application with team site
2. Create a new library called docA, upload a new document
3. Then I could move the document to Document library with drag-and-drop feature
4. Activate SharePoint Server Publishing Infrastructure
5. I could not move the document from Document library to docA library with drag-and-drop feature
6. Upload a new document to docA, then also could not move it to Document library with drag-and-drop feature
Since you also want to use Managed Navigation, you can use Content and Structure feature to move a document from one library to another library. You can do as Site Settings->content and structure under Site Administration->clicking on the library,
then you can move or copy the document to the destination library.
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Problem with Drag and Drop on a JTree
I would like to have a JTree with drag and drop support with the following characteristics:
1) The JTree holds near 100 different kinds of TreeNodes
2) The drag and drop operation uses TreeNodes as Transferable
3) The drop operation adds a new TreeNode child on the TreeNode that accepts the drop
4) There are some rules for a TreeNode to accept the drops by example:
Type1 can accept Type2
Type2 can accept Type3
All other combinations are not allowed
I am using the following classes to support this behavior
JTree
DataFlavor
DragSourceListener
DropTarget
DropTargeListener
DragSource
GestureListener
Transferable
The question is:
How to change the cursor shape when the mouse is over a node to show graphically the drop accepting rules.?
I can not use the the following methods to change the cursor-shape
DropTargetListener.dragEnter
And
DropTargetListener.dragOver
Case they receive a DropTargetDragEvent witch don�t knows nothing about the TreeNode type dragged.
I can not create a TreeNode on the method GestureListener.dragGestureRecognized cause this could not work when dragging between two diffents JVM.Hello,
You might want to search this forum for this class : DNDTree.java. It pretty much does the job. -
Can you use a custom cursor with drag and drop?
Hi there! I'm a newbie flash user and working on a simulation for a graduate course in instructional design. I'm using Flash Professional CC on Mac. Here's what I'm trying to do. I have several draggable sprites on the stage and three target sprites. I have specified the original x,y locations of the sprites and have set the end x,y locations as those of each of the three targets. Items must be dragged to one of the three targets.
Some questions:
1. Can I specify more than one End x,y location for a draggable sprite? I'm creating a lesson to teach kindergartners how to sort lunchroom waste. If they have a napkin, for example, it could either go into the compost OR into the recycling. In cases like this where an item could really be placed into more than one bin, I want them to get it right if they do either of those things, rather than forcing them to choose which one.
2. To make my project more "fun" for kids, I wanted to customize the cursor with a graphic of hand. When I tried this in the flash file it works perfectly until I add the drag and drop functionality for the wasted items. Then the cursor will more around but not pick up any items. Once I revert back to the standard pointer, the correct drag and drop functionality is restored.
3. I have it set to snap back to the original location if learner attempts to drop the item on the wrong target. I want to be able to play a sound file when that happens, as well as play a sound file when it lands on the correct target, as well as shrink the item and change its opacity so that it appears invisible. I want to give the illusion of it being placed into the bin. I have no idea as to the proper way to code these events so that they happen.
4. I've watched dozens of hours of youtube tutorials before coming here. I'm a quick study, but am very new to action script. In one of the videos the developer showed referencing an external action script file which I don't think is an option in CC. The coding method he used seemed much more streamlined and "clean" than the chunks I'm working with now. Is there an easy way for me to code information about these objects than the way I've got it here now? I hate starting new things with bad habits. The perils of self-teaching.
Thanks!
I'm pasting my code from the actions panel below so you can see what's going on:
stop();
/* Custom Mouse Cursor
Replaces the default mouse cursor with the specified symbol instance.
stage.addChild(customcursor);
customcursor.mouseEnabled = false;
customcursor.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
function fl_CustomMouseCursor(event:Event)
customcursor.x = stage.mouseX;
customcursor.y = stage.mouseY;
Mouse.hide();
//To restore the default mouse pointer, uncomment the following lines:
customcursor.removeEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
stage.removeChild(customcursor);
Mouse.show();
//set up variables and objects for dragging
var offset:int = 10;
var appleStartX:int = 243;
var appleStartY:int = 156;
var appleEndX:int = 522;
var appleEndY:int = 22;
apple.buttonMode = true;
apple.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
apple.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var cupStartX:int = 39;
var cupStartY:int = 266;
var cupEndX:int = 520;
var cupEndY:int = 175;
cup.buttonMode = true;
cup.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
cup.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var barStartX:int = 178;
var barStartY:int = 234;
var barEndX:int = 522;
var barEndY:int = 22;
bar.buttonMode = true;
bar.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
bar.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var orangeStartX:int = 284;
var orangeStartY:int = 102;
var orangeEndX:int = 522;
var orangeEndY:int = 22;
orange.buttonMode = true;
orange.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
orange.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var bottleStartX:int = 172;
var bottleStartY:int = 303;
var bottleEndX:int = 520;
var bottleEndY:int = 175;
bottle.buttonMode = true;
bottle.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
bottle.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var bananaStartX:int = 113;
var bananaStartY:int = 123;
var bananaEndX:int = 522;
var bananaEndY:int = 22;
banana.buttonMode = true;
banana.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
banana.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var napkinStartX:int = 248;
var napkinStartY:int = 271;
var napkinEndX:int = 520;
var napkinEndY:int = 175;
napkin.buttonMode = true;
napkin.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
napkin.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var yogurtStartX:int = 27;
var yogurtStartY:int = 136;
var yogurtEndX:int = 518;
var yogurtEndY:int = 329;
yogurt.buttonMode = true;
yogurt.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
yogurt.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var strawberryStartX:int = 120;
var strawberryStartY:int = 285;
var strawberryEndX:int = 522;
var strawberryEndY:int = 22;
strawberry.buttonMode = true;
strawberry.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
strawberry.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var sandwichStartX:int = 7;
var sandwichStartY:int = 364;
var sandwichEndX:int = 522;
var sandwichEndY:int = 22;
sandwich.buttonMode = true;
sandwich.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
sandwich.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var juiceStartX:int = 88;
var juiceStartY:int = 347;
var juiceEndX:int = 518;
var juiceEndY:int = 329;
juice.buttonMode = true;
juice.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
juice.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var foilStartX:int = 39;
var foilStartY:int = 416;
var foilEndX:int = 520;
var foilEndY:int = 175;
foil.buttonMode = true;
foil.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
foil.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
var waxbagStartX:int = 235;
var waxbagStartY:int = 342;
var waxbagEndX:int = 522;
var waxbagEndY:int = 22;
waxbag.buttonMode = true;
waxbag.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
waxbag.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
function startDragging (e:MouseEvent) {
e.currentTarget.startDrag();
function stopDragging (e:MouseEvent) {
e.currentTarget.stopDrag();
switch (e.currentTarget) {
case apple:
if (apple.x < appleEndX - offset || apple.x > appleEndX + offset || apple.y < appleEndY - offset || apple.y > appleEndY + offset) {
apple.x = appleStartX;
apple.y = appleStartY;
else {
apple.x = appleEndX;
apple.y = appleEndY;
//checkGame();
break;
case sandwich:
if (sandwich.x < sandwichEndX - offset || sandwich.x > sandwichEndX + offset || sandwich.y < sandwichEndY - offset || sandwich.y > sandwichEndY + offset) {
sandwich.x = sandwichStartX;
sandwich.y = sandwichStartY;
else {
sandwich.x = sandwichEndX;
sandwich.y = sandwichEndY;
//checkGame();
break;
case orange:
if (orange.x < orangeEndX - offset || orange.x > orangeEndX + offset || orange.y < orangeEndY - offset || orange.y > orangeEndY + offset) {
orange.x = orangeStartX;
orange.y = orangeStartY;
else {
orange.x = orangeEndX;
orange.y = orangeEndY;
//checkGame();
break;
case strawberry:
if (strawberry.x < strawberryEndX - offset || strawberry.x > strawberryEndX + offset || strawberry.y < strawberryEndY - offset || strawberry.y > strawberryEndY + offset) {
strawberry.x = strawberryStartX;
strawberry.y = strawberryStartY;
else {
strawberry.x = strawberryEndX;
strawberry.y = strawberryEndY;
//checkGame();
break;
case napkin:
if (napkin.x < napkinEndX - offset || napkin.x > napkinEndX + offset || napkin.y < napkinEndY - offset || napkin.y > napkinEndY + offset) {
napkin.x = napkinStartX;
napkin.y = napkinStartY;
else {
napkin.x = napkinEndX;
napkin.y = napkinEndY;
//checkGame();
break;
case bar:
if (bar.x < barEndX - offset || bar.x > barEndX + offset || bar.y < barEndY - offset || bar.y > barEndY + offset) {
bar.x = barStartX;
bar.y = barStartY;
else {
bar.x = barEndX;
bar.y = barEndY;
//checkGame();
break;
case juice:
if (juice.x < juiceEndX - offset || juice.x > juiceEndX + offset || juice.y < juiceEndY - offset || juice.y > juiceEndY + offset) {
juice.x = juiceStartX;
juice.y = juiceStartY;
else {
juice.x = juiceEndX;
juice.y = juiceEndY;
//checkGame();
break;
case foil:
if (foil.x < foilEndX - offset || foil.x > foilEndX + offset || foil.y < foilEndY - offset || foil.y > foilEndY + offset) {
foil.x = foilStartX;
foil.y = foilStartY;
else {
foil.x = foilEndX;
foil.y = foilEndY;
//checkGame();
break;
case banana:
if (banana.x < bananaEndX - offset || banana.x > bananaEndX + offset || banana.y < bananaEndY - offset || banana.y > bananaEndY + offset) {
banana.x = bananaStartX;
banana.y = bananaStartY;
else {
banana.x = bananaEndX;
banana.y = bananaEndY;
//checkGame();
break;
case bottle:
if (bottle.x < bottleEndX - offset || bottle.x > bottleEndX + offset || bottle.y < bottleEndY - offset || bottle.y > bottleEndY + offset) {
bottle.x = bottleStartX;
bottle.y = bottleStartY;
else {
bottle.x = bottleEndX;
bottle.y = bottleEndY;
//checkGame();
break;
case waxbag:
if (waxbag.x < waxbagEndX - offset || waxbag.x > waxbagEndX + offset || waxbag.y < waxbagEndY - offset || waxbag.y > waxbagEndY + offset) {
waxbag.x = waxbagStartX;
waxbag.y = waxbagStartY;
else {
waxbag.x = waxbagEndX;
waxbag.y = waxbagEndY;
//checkGame();
break;
case cup:
if (cup.x < cupEndX - offset || cup.x > cupEndX + offset || cup.y < cupEndY - offset || cup.y > cupEndY + offset) {
cup.x = cupStartX;
cup.y = cupStartY;
else {
cup.x = cupEndX;
cup.y = cupEndY;
//checkGame();
break;
case yogurt:
if (yogurt.x < yogurtEndX - offset || yogurt.x > yogurtEndX + offset || yogurt.y < yogurtEndY - offset || yogurt.y > yogurtEndY + offset) {
yogurt.x = yogurtStartX;
yogurt.y = yogurtStartY;
else {
waxbag.x = waxbagEndX;
waxbag.y = waxbagEndY;
//checkGame();Some questions:
1. Can I specify more than one End x,y location for a draggable sprite?
yes, use an if-else statement
I'm creating a lesson to teach kindergartners how to sort lunchroom waste. If they have a napkin, for example, it could either go into the compost OR into the recycling. In cases like this where an item could really be placed into more than one bin, I want them to get it right if they do either of those things, rather than forcing them to choose which one.
2. To make my project more "fun" for kids, I wanted to customize the cursor with a graphic of hand. When I tried this in the flash file it works perfectly until I add the drag and drop functionality for the wasted items. Then the cursor will more around but not pick up any items. Once I revert back to the standard pointer, the correct drag and drop functionality is restored.
assign your cursor's mouseEnabled property to false:
yourcursor.mouseEnabled=false;
3. I have it set to snap back to the original location if learner attempts to drop the item on the wrong target. I want to be able to play a sound file when that happens, as well as play a sound file when it lands on the correct target, as well as shrink the item and change its opacity so that it appears invisible. I want to give the illusion of it being placed into the bin. I have no idea as to the proper way to code these events so that they happen.
use the sound class to create a sound:
// initialize your correct sound once with
var correctSound:Sound=new CorrectSound(); // add an mp3 sound to your library and assign it class = CorrectSound
// apply the play() method everytime you want your sound to play:
correctSound.play();
// change an object's opacity:
someobject.alpha = .3; // partially visible
someobject.alpha = 1; // fully visible
someobject.visible=false; // not visible, at all.
// change an object's scale
someobject.scaleX=someobject.scaleY=.5; // shink width and height by 2
someobject.scaleX=someobject.scaleY=1; // resize to original
4. I've watched dozens of hours of youtube tutorials before coming here. I'm a quick study, but am very new to action script. In one of the videos the developer showed referencing an external action script file which I don't think is an option in CC. The coding method he used seemed much more streamlined and "clean" than the chunks I'm working with now. Is there an easy way for me to code information about these objects than the way I've got it here now? I hate starting new things with bad habits. The perils of self-teaching.
you could google:
actionscript 3 class coding
actionscript 3 object oriented programming
p.s. you can simplify and streamline your coding by learning about arrays and using hitTestObject. -
Hi, I've been playing around with a trail version of flex and
was interested to know if anybody had tried to implement the drag
and drop functionality of the Tree component to a TileList? After
much messing about I noticed the format of the Tree data in the
DragSource was different to that of other lists. I've tried
overriding the addDragData method to see if I can change the format
of the data although this seems to cause problems when the Drag
complete event is triggered. Any ideas or help would be
appreciated.Hey, Thanks for the reply. Yes this appears to work although
it took a bit of messing around and I still had to override the
dragCompleteHandler method of the Tree component to get the tree
view to update. One issue I do have (This appears to be an issue
with the tree component) is as you drag and drop files across from
one tree to another, when you remove the last child node the parent
node which has a folder icon changes to a document icon. Is there a
way around this? -
Problem with Drag and drop in panel dashboard
Hi
I am having problem with drag and drop in panel dashboard.
I will explain what i am doing.
I am using Oracle three column template in First region i am having a table that showing all customer.
I drag one record from my table and drop it on customer info (CIF) page on second region it is working fine.
my CIF page has a dashboard with 6 panel box. i am showing 6 different jsff in 6 panel box.
I put drop target in each jsff
<af:dropTarget dropListener="#{backingBeanScope.backing_customerinformation.handleItemDrop}"
actions="COPY">
<af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
discriminant="CustomerSearchDnD"/>
</af:dropTarget>
when i put drop target my panel boxes moves only when i drag it to another panel box header not entire part of panel box.
if i remove the drop target then panel box move normally as the example given on: [http://adfui.us.oracle.com:7778/faces-trunk/faces/visualDesigns/dashboard.jspx?_afrLoop=2021391022520156&_afrWindowMode=0&_afrWindowId=null] but in taht case i am not able to drag and drop my dataYou must be an Oracle employee as you're referring to a component in the upcoming JDeveloper version which has yet been released to the general public. Oracle employee's are, I believe, directed to post on internal Oracle forums.
CM. -
HT4061 Drag and drop function in Windows 8 doesn't work with iTunes.
How to import music files from Windows 8 to iTunes 11.0.3 x64? Drag and drop function doesn't work. Thank you!
> Straight drag and drop to PS produced a warning message so, when I then tried to drag on to the PS task bar button, I got the Ø cursor but on moving into the PS window and releasing the mouse button there, the file opened.
That's the strangest behavior that I would imagine. Are you using the default vista aero theme or you have turned down or using custom theme and visual effects?
> it needs to be pointed out that this is a really bad habit that will smack you in the face one day...
I don't understand what you mean. If you are concerned about viruses, in my understanding copying and opening a file from the internet which is what "Save image as" does, is less safe than coping and pasting pixels. Copying and pasting pixels is the same as coping and pasting text from your web browser, it can't execute hidden code. If that was possible everybody will get viruses at the moment text or pixels are displayed on your browser.
By the way when you view a page from the internet, image files are already downloaded in the temp folder of your computer but only the browser uses them unless you open them from there and use in another program. So if you have a virus protection the images are already scanned. -
Adding drag and drop functionality to a hbox with a repeater?
hello,
I've been searching on how to add drag and drop functionality
to an hbox. You're probably thinking "just use a tilelist", and
that's what i'm currently using, but the tilelist cannot align
items to the center, which is crucial in my application (if you
need me to explain further i will, but i don't think it's relevant
here).
So i need drag and drop on an Hbox. The repeater is necessary
because the hbox may need to be populated with items initially,
which can later be dragged and dropped either in itself (to
re-arrange items) or into another hbox of this kind. For the past
few hours I've been trying to find anything that can even hint at
this type of functionality (i've been searching and experimenting
for hours). If anyone can point me in the right direction, i'd
appreciate it. Thank you very much. -b"bmilesp" <[email protected]> wrote in
message
news:gnd5c7$jas$[email protected]..
> hello,
>
> I've been searching on how to add drag and drop
functionality to an hbox.
> You're probably thinking "just use a tilelist", and
that's what i'm
> currently
> using, but the tilelist cannot align items to the
center, which is crucial
> in
> my application (if you need me to explain further i
will, but i don't
> think
> it's relevant here).
Sure it can.
> So i need drag and drop on an Hbox. The repeater is
necessary because the
> hbox
> may need to be populated with items initially, which can
later be dragged
> and
> dropped either in itself (to re-arrange items) or into
another hbox of
> this
> kind. For the past few hours I've been trying to find
anything that can
> even
> hint at this type of functionality (i've been searching
and experimenting
> for
> hours). If anyone can point me in the right direction,
i'd appreciate it.
> Thank
> you very much. -b
http://www.quilix.com/node/3 -
Hello,
I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities. Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format. Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction. I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
Drag the Yellow (or variable drag box) to the drag target.
Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
Move both draggable boxes to the drag target and use the undo and reset buttons...
Anyhow, I know you all are sharp and will run the demo through its paces.
I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request - save the darn "undefined" message that comes up!
Many thanks in advance for any help and/or direction that you all may be able to provide,
PaulHello,
I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
I did go ahead and submit this to Adobe as a possible bug today.
Thanks again for any help related to this issue. If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks!
Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
~ Paul
Maybe you are looking for
-
How to link Value Helps in Visual Composer?
I would like to know, how to link value helps in VC...??? It's like.....after selecting a value from Value Help 1, how do i restrict my Value Help 2 values so that it contains the values that are relevant to the value selected from Value Help 1 only.
-
when i plug my ipod into my computer nothing shows up, i tried it on 2 different computers, so i know it's not the usp jack that isn't working.it was just replaced with a new one cause the other one would not respond either. I've tried doing all thr
-
Hi, I need a Serach Help that will display a calendar but only with Month/Year. So the user would select, for example, January 2007. I know I can code a solution to do this (so no need to post code here, thanks) but just wondering if there is an exis
-
Any sleep/pause/wait function in flex/AS
I am new to flex and this forum. So can anyone tell me how to produce a delay in my program. I just need 3 second delay in my program. I just need to write a delay function. The function look like.. private function delay():void // 3 second dela
-
System centre conference Durban
does anyone know when the next system centre conference will be held in Durban? i registered for the event but i am unable to view it anymore.