Drag and Drop | Text | Submit | Help, please

Hello. I really need help. I THANK YOU in advance.

I'm building a contact with voting of profession flash with AS3. The feature will allow users to drag and drop choices OR add their own allow them to present their TOP 5 choices.

PROBLEM:

1 drag and move text is not submitted when it is moved to the editable text field.

HOW CAN I DO this to ALLOW for DRAG AND drop the ITEMS to BE SUBMITTED or TEXT THAT IS ENTERED MANUALLY.

This can be seen HERE: http://pttdt.com/winnipegcafes.php

AS3 code so far:

/ * Drag and Drop

Makes the instance for the specified symbol with drag and drop furniture.

*/

choice_1.buttonMode = true;

choice_1.mouseChildren = false;

choice_1.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

function fl_ClickToDrag(event:MouseEvent):void

{

choice_1.startDrag ();

}

stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

function fl_ReleaseToDrop(event:MouseEvent):void

{

choice_1.stopDrag ();

}

/ * Drag and Drop

Makes the instance for the specified symbol with drag and drop furniture.

*/

choice_2.buttonMode = true;

choice_2.mouseChildren = false;

choice_2.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);

function fl_ClickToDrag_2(event:MouseEvent):void

{

choice_2.startDrag ();

}

stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);

function fl_ReleaseToDrop_2(event:MouseEvent):void

{

choice_2.stopDrag ();

}

/ * Drag and Drop

Makes the instance for the specified symbol with drag and drop furniture.

*/

choice_3.buttonMode = true;

choice_3.mouseChildren = false;

choice_3.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);

function fl_ClickToDrag_3(event:MouseEvent):void

{

choice_3.startDrag ();

}

stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);

function fl_ReleaseToDrop_3(event:MouseEvent):void

{

choice_3.stopDrag ();

}

/ * Drag and Drop

Makes the instance for the specified symbol with drag and drop furniture.

*/

choice_4.buttonMode = true;

choice_4.mouseChildren = false;

choice_4.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_4);

function fl_ClickToDrag_4(event:MouseEvent):void

{

choice_4.startDrag ();

}

stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_4);

function fl_ReleaseToDrop_4(event:MouseEvent):void

{

choice_4.stopDrag ();

}

/ * Drag and Drop

Makes the instance for the specified symbol with drag and drop furniture.

*/

choice_5.buttonMode = true;

choice_5.mouseChildren = false;

choice_5.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_5);

function fl_ClickToDrag_5(event:MouseEvent):void

{

choice_5.startDrag ();

}

stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_5);

function fl_ReleaseToDrop_5(event:MouseEvent):void

{

choice_5.stopDrag ();

}

/ * Event mouseclick

By clicking on the instance for the specified symbol performs a function in which you can add your own custom code.

Directions for use:

1. Add your custom code on a new line after the line that says "/ / Start your code custom" below.

The code runs when the user clicks the symbol instance.

*/

send_btn.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void

{

/ / Start your code custom

/ / This code example displays the words 'Mouse clicked' in the output panel.

trace (box_1.text);

trace (box_2.text);

trace (box_3.text);

trace (box_4.text);

trace (box_5.text);

trace (theName.text);

trace (theEmail.text);

/ / End of your code custom

}

Please HELP

Your code appears to only drag - move and nothing regarding the assignment, whatever it is, when an item is deleted.  So your problem is that you did not do anything to do what you say doesn't happen.

Tags: Adobe Animate

Similar Questions

  • With Firefox 12 I'm impossible to drag-and-drop text in the text boxes or search bars. Is there a way to activate this feature?

    Firefox 11 allowed drag-and - drop text and the other two programs inside the browser itself. in FF12, I can do neither. How to restore this function?

    I had this problem too and couldn't add or move bookmarks either. If you have torbutton add-on installed, try disabling the addon. Perhaps it is caused by another addon

  • Help with Drag and Drop text

    I am trying to create a series of text objects that I can drag and drop on the screen. I'm trying to text fields in a movieClip container from the Drag and Drop will not work on text fields. When I do that, Flash still sees the objects as fields of text rather than the video clips, and I get the following error.

    ReferenceError: Error #1069: property not found startDrag on flash.text.TextField and there is no default value.
    at chris_fla::MainTimeline/startDragging()

    I'm a newbie to this. What I am doing wrong? Thank you!

    Russ

    Use currentTarget instead of the target.

  • Drag and drop text fields

    Hey.  try to drag and drop a text field.  So I created a text field and saved as a swf file.  I then load into the use of xml and the loader class.  When I go to pick it up, I get the error

    TypeError: Error #1034: Type coercion failed: cannot convert flash.text::TextField@10d59b51 to flash.display.Sprite.
    at GalleryNew_fla::MainTimeline/pickUp() [GalleryNew_fla. MainTimeline::frame1:81]

    It is specifically pointing to

    function pickUp(event:MouseEvent):void {
        getPosition(event.target);
        stage.addChild(event.target as DisplayObject);
        Sprite(event.target).startDrag(true);
    }
    

    Should I be casting something else or something?

    see you soon

    Use currentTarget instead of the target.

  • Formatting of Drag and Drop text boxes

    Hello

    Is it possible to format the text of a drag-and - déposer dashboard area text plus further using the default values?

    I know that I could create the text in the form of a chart and use it as a background image, but it's not very flexible.

    Similarly, it would be great if you could have the background (i.e. ' cell' shading) and different colors of text.

    I suspect that the answer is 'no', and is there no plans to introduce this, but just thought I might ask!

    Thank you

    Brian

    Not at the moment.

    Foglight 6 aura of changes for drag - move, but the final list of changes is not yet available.

  • Drag-and - drop text reader to the other application does not work

    Hello

    I have disabled protected mode in acrobat reader of the registry key... HKCU\Software\Adobe\Acrobat Reader\11.0\Privileged\bProtectedMode REG_DWORD 0

    This works when Acrobat Reader native app is used. When I open a PDF file in the browser (Acrobat Reader Plugin for IE11) then drag / drop do not work. Select, right click copy, destination Application as Word 2013 right click Paste, works.

    We use 11.0.12. Same problem was 11.0.11 too.

    Any ideas?

    Kind regards

    Roland

    Hi supports,

    Web browser uses only the PDF viewer plugin to view PDF files. It will have the same feature of the player.

    So if you want to use the drag & drop feature, please stick to the player application.

    Kind regards
    Nicos

  • Drag and drop with a Flash response... Help, please

    Hello

    I just started with flash and actionscript3 about 5 weeks ago. I am in my first year uni and I have an assignment to slide / move (for a kindergarten class). His "little red hen" and they place the correct image to the right holder.

    I got drag and drop work but I can't seem to find a way display a check mark when they place in the correct holder.

    Help, please...

    It's my script (it may seem messy... still new)

    import flash.events.MouseEvent;

    / * Mouse event that ensures the function of hen movieclip to start dragging
    When the mouse is pressed * /.

    hen1_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen2_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen3_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen4_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen5_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen6_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);


    Ability to function (event: MouseEvent): void
    {
    event.target.startDrag ();
    }

    / * Mouse event that ensures the function of hen movieclip to drop
    When the mouse button is released with Condition statement, if
    owner = hen, hen snaps into place * /.

    hen1_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop1);
    function dragStop1 (event: MouseEvent): void
    {
    hen1_mc.stopDrag ();
    If (hen1_mc.hitTestObject (holder1_mc) is true)

    {
    hen1_mc.x = holder1_mc.x;
    hen1_mc.y = holder1_mc.y;
    }
    }


    hen2_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop2);
    function dragStop2 (event: MouseEvent): void
    {
    hen2_mc.stopDrag ();
    If (hen2_mc.hitTestObject (holder2_mc) == true)
    {
    hen2_mc.x = holder2_mc.x;
    hen2_mc.y = holder2_mc.y;
    }
    }


    hen3_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop3);
    function dragStop3 (event: MouseEvent): void
    {
    hen3_mc.stopDrag ();
    If (hen3_mc.hitTestObject (holder3_mc) == true)
    {
    hen3_mc.x = holder3_mc.x;
    hen3_mc.y = holder3_mc.y;
    }
    }

    hen4_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop4);
    function dragStop4 (event: MouseEvent): void
    {
    hen4_mc.stopDrag ();
    If (hen4_mc, hitTestObject (holder4_mc) is true)
    {
    hen4_mc.x = holder4_mc.x;
    hen4_mc.y = holder4_mc.y;
    }
    }

    hen5_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop5);
    function dragStop5 (event: MouseEvent): void
    {
    hen5_mc.stopDrag ();
    If (hen5_mc.hitTestObject (holder5_mc) == true)
    {
    hen5_mc.x = holder5_mc.x;
    hen5_mc.y = holder5_mc.y;
    }
    }

    hen6_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop6);
    function dragStop6 (event: MouseEvent): void
    {
    hen6_mc.stopDrag ();
    If (hen6_mc.hitTestObject (holder6_mc) == true)
    {
    hen6_mc.x = holder6_mc.x;
    hen6_mc.y = holder6_mc.y;
    }
    }

    You alreadsy have conditional statements in place as far as I can tell, you just need to add the ActionScript to display the tick...

    function dragStop1 (event: MouseEvent): void

    {

    hen1_mc.stopDrag ();

    If (hen1_mc.hitTestObject (holder1_mc))

    {

    hen1_mc.x = holder1_mc.x;

    hen1_mc.y = holder1_mc.y;

    View the tick code goes here

    }

    }

  • HELP text is not displayed. and cannot drag and drop photos

    OK well when I insert the text it does not show, but it shows what I wrote on the side. I have contact support their answer was that they cannot help me because I'm the trial verison. I'll just buy a program if the trial version does not work its that simple. Also when I try to drag-and - drop an image a little apears circle with the line through it. I have admin rights.

    Can you make sure you check on your drivers. If they are more up-to-date, which might be the cause of your problems.

  • Hi help me with drag and drop with as3 if you please

    Hello friends,

    I am a newbie to as3 in flash and had a prob with drag and drop features

    var dragArray:Array = [square_word, circle_word, triangle_word];

    var matchArray:Array = [squareMatch, circleMatch, triangleMatch];

    var posArray:Array = [{x: 276, y: 207}, {x: 443, y: 207}, {x: 107, y: 207}];

    var currentClip:MovieClip;

    var startX:Number;

    var startY: number;

    for (var i: int = 0; i < dragArray.length; i ++) {}

    dragArray [i] .buttonMode = true;

    dragArray [i] .addEventListener (MouseEvent.MOUSE_DOWN, item_onMouseDown);

    matchArray [i] .alpha = 0.2;

    }

    function item_onMouseDown(event:MouseEvent):void {}

    currentClip = MovieClip (event.currentTarget);

    startX = currentClip.x;

    startY = currentClip.y;

    addChild (currentClip); bring to front

    currentClip.startDrag ();

    stage.addEventListener (MouseEvent.MOUSE_UP, stage_onMouseUp);

    }

    function stage_onMouseUp(event:MouseEvent):void {}

    stage.removeEventListener (MouseEvent.MOUSE_UP, stage_onMouseUp);

    currentClip.stopDrag ();

    var int index = dragArray.indexOf (currentClip);

    var matchClip:MovieClip = MovieClip (matchArray [index]);

    If (matchClip.hitTestPoint (currentClip.x, currentClip.y, true)) {}

    a match was found. Position the clip using the values of posArray:

    currentClip.x = posArray [index] .x;

    currentClip.y = there posArray [index];

    make not draggable:

    currentClip.removeEventListener (MouseEvent.MOUSE_DOWN, item_onMouseDown);

    currentClip.buttonMode = false;

    } else {}

    football match has not, so send the clip to the back where he began:

    currentClip.x = startX;

    currentClip.y = startY;

    }

    in this code, that I'm not the subject abruptly to its original position if he fell into a movieclip wrong (as we should have the availability of droping the drag square circle alse object) and then we should have a button to check if everything is correctly matched, if not after clicking another button 'correctitself', we should get the good objects droping on correct locations automatically

    Please help with any suggestions ASAP

    }

    assign your listener matchall checkAllMatchF and use button:

    var dragArray:Array = [square_word, circle_word, triangle_word];

    var matchArray:Array = [squareMatch, circleMatch, triangleMatch];

    var posArray:Array = [{x: 276, y: 207}, {x: 443, y: 207}, {x: 107, y: 207}];

    var currentClip:MovieClip;

    var startX:Number;

    var startY: number;

    for (var i: int = 0; i< dragarray.length;="" i++)="">

    dragArray [i] .buttonMode = true;

    dragArray [i] .addEventListener (MouseEvent.MOUSE_DOWN, item_onMouseDown);

    matchArray [i] .alpha = 0.2;

    }

    function item_onMouseDown(event:MouseEvent):void {}

    currentClip = MovieClip (event.currentTarget);

    startX = currentClip.x;

    startY = currentClip.y;

    addChild (currentClip); bring to front

    currentClip.startDrag ();

    stage.addEventListener (MouseEvent.MOUSE_UP, stage_onMouseUp);

    }

    function stage_onMouseUp(event:MouseEvent):void {}

    stage.removeEventListener (MouseEvent.MOUSE_UP, stage_onMouseUp);

    currentClip.stopDrag ();

    var int index = dragArray.indexOf (currentClip);

    var matchClip:MovieClip = MovieClip (matchArray [index]);

    If (matchClip.hitTestPoint (currentClip.x, currentClip.y, true)) {}

    a match was found. Position the clip using the values of posArray:

    currentClip.x = posArray [index] .x;

    currentClip.y = there posArray [index];

    make not draggable:

    currentClip.removeEventListener (MouseEvent.MOUSE_DOWN, item_onMouseDown);

    currentClip.buttonMode = false;

    } else {}

    football match has not, so send the clip to the back where he began:

    currentClip.x = startX;

    currentClip.y = startY;

    }

    }

    function checkAllMatchF (): Boolean {}

    for (var i: int = 0; i<>

    If (dragArray [i] .x! = matchArray [i] .x | dragArray [i] there! = matchArray [i] there) {}

    Returns false;

    }

    }

    Returns true;

    }

  • Captivate 8 Drag and Drop several legends of text for your comments

    Hello

    I am creating an interaction with an element with which the learner can drag for four different images representing the different categories of data classification.  The idea of the interaction is for the learner to discover each of the four different categories, by trial and error.    I want them to provide comments through text captions that the answer is right or wrong, but each piece of comments will be different and the user should be able to drag the item several times until they found the right answer.  I can't fwork how to do this.

    I just upgraded to Captivate 8 week last, after having previously used Captivate 5.   Therefore, I've never used the installation drag - d├⌐poser and I don't know if he's going to do what I'm trying to achieve or if it's something I could achieve with shares advanced instead, or if it is not possible to do. I tried searching for similar topics, but either did not understand the answer or scenarios seemed different.  I don't really know where everything is still 8 Captivate, and while I have used certain actions in Captivate 5 tip, I'm not that comfortable with them, so simple is good.  The interaction doesn't have to be reported on.

    Is anyone able to help me please?

    Thanks in advance for your help.

    Hello

    According to my understanding, you have a source element that can drag and drop on 4 different targets (different images). For every drop of a sort of legend should appear on stage the feedback to the corresponding user from the target source. (Correct me if I'm wrong)

    This can be achieved with Drag and drop interaction.

    1. Insert the source 4times and overlap each other (since you can drag and drop 1 number 4 times, you must have this element to work as a source of slippage 4 up to 4 items).

    2. make the 4 elements as drag source and group them into a single type. (With the help of add option)

    3. you have your 4 images on stage and Mark as targets of drag.

    4. Insert the rear power legends and put them near their targets. Disable their 'Visible output' flag on Bill pro forma.

    5. now match the Correct ANS on stage.i.e of one of the source type to a target correct years.

    6. Select each target and open their box "Actions of the object". (from Panel drag / move)

    7. uncheck the ' accept all the ' option and the value of count 1. Add the action of 'travel' to show their legends of Feedback now under Drag source Type. (which were hidden). This should be through "Advanced Actions.

    8. now after for each target open the dialog box 'Good years' drag and drop the Panel. (it will be under options and so visible from the source or target is selected)

    9. here under the table, you can see that the value of count is 4. This is to reduce the value to 1. (double-click to change)

    Interaction is now ready. Please don't answer if that's what you wanted to achieve and if you do all the steps above.

    Derrick

  • z6500 touchpad drag and drop / select text

    Just bought a z6500 touchpad and using it with Windows 7.   Manages all the mouse (gestures) basic tasks, but I cannot figure out how to do

    1. Drag / move
    2. Select a section of text in a word document

    any suggestions?

    Thank you.

    Hi again Kurtis,

    It is good to hear from you!

    In order to drag and drop on your trackpad, ensures that when you double-tap, you hold the second tap. By releasing your fingers, you will be able to drop the item on the screen.

    I hope this helps!

    Best regards

  • Can you please tell me how I arrange and move the images in a folder like in XP, when I drag and drop a picture, it comes down to its original position

    Organize and rearrange the images in a folder named as in XP. You could organize by date, size, etc. and do drag and drop all in a folder, it is not possible in Windows 7

    Hi Halohodge,

    Welcome to the Microsoft Answers site!

    You can't manually rearrange files/images by dragging them in the folder in Windows 7. This change is design in Windows 7.

    If you have concerns or comments with respect to the question or any other Microsoft application, please see the links below and send the same:

    Microsoft Connect
    http://connect.Microsoft.com/

    Comments for Windows 7

    If you are referring to the reorganize by date, size, etc. then you can always do than simply right click and selecting the option of sort by in the drop-down list when it appears in the photo or file folder.

    Concerning
    Varun j: Microsoft Support
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Drag and drop the text on the target

    I am changing a drag and drop interaction in Captivate 9 included in a Starter of course downloaded from the e learning brothers. I've renamed the source text, but when it reaches the correct destination, he returned to the original text "Answer 1". Where can I change the text of the button when it is properly recognized destination.

    Please see the icons present tutorial in the Captivate welcome screen.

    Image attached for reference.

    Click on the computer icon and you can find examples of projects and tutorials of every new feature implemented.

    Thank you

    Derrick

  • Tip action to show only a previous button on a slide so the learner clicked on the button Submit on Drag and Drop

    I am a user of long date Captivate and have dabbled with advanced Actions and Variables, so know just enough to get me in trouble. Hoping someone can help me with what I hope is a simple tip action:

    I am currently using CP8 and created a training where learners click on a map of building to go to different "rooms" to complete an interaction drag-and - déposer a certain topic related HR. The problem is that some of my learners test forget what 'rooms' they have already read and will click on those they have already visited. I added a back button, so that they can return to the map if they made a mistake, but now they are able to leave the slide without completing the interaction drag and drop.

    Basically, I need to hide the back button unless the learner has already completed (for example, the user clicks on the button submit to) the Drag and Drop interaction, but I'm not sure how to set up. Can anyone help?

    Thank you!

    Hide the button back to begin with. A tip action can be triggered by an event the success and failure of the & slipped. I guess that you will need at least two commands:

    • View the "back" button
    • Go to the next slide.

    It seems the simplest solution. You can also ignore the slide D & D when they enter a second time, but then you will need a Boolean variable to be turned on/off by these same events and a conditional action on which checks this variable and immediately jumps to the next slide when it is set to 1.

  • Can not see the text and cannot drag and drop images

    OK well when I insert the text it does not show, but it shows what I wrote on the side. I have contact support their answer was that they cannot help me because I'm the trial verison. I'll just buy a program if the trial version does not work its that simple. Also when I try to drag-and - drop an image a little apears circle with the line through it. I have admin rights.

    Dame143,

    The author of the tutorial is able to use 30pt font because the size of the image is much smaller than yours. Take your image size down to a width of 400 or 500 px by going to Image > Image size.

Maybe you are looking for

  • Internt connection display icon

    I have no way to see if the internet is connected or the signal is weak or strong. How can I have an icon for it?

  • Update disk on Tecra A7

    My TECRA A7 has a 100 GB hard drive, and I wonder if I can replace it for a larger.Is this possible and what should I do? Thanks for any help

  • Rotation with El Capitan beach ball?

    Why do I get the rotation beach ball all the time since the upgrade to El Capitan?

  • Qosmio G30 / G35 - differences of memory, sound, speaker of extreme bass, touchpad?

    I would like to know what European models of G30 European series touchpad LCD, where the calendar is able to show, for example?What is the memory of it, 533 MHz or 667 MHz bus speed? Why is there no subwoofwers in the Qosmio series, in addition to 2

  • Windows 7: memory setting

    Windows7: Photos images program says that she didn't have enough memory to complete the registration of a file (required at least 300 dpi).  With 8 GB of system memory, 1 terabyte HD... I need to know how to set the parameter memory.  Need basics lik