Drag & Drop question (the target object lock)

Hello

I worked with an interactive game and I've set up my objects (drag) in a single layer with their target of the object in another. Export Flash 8 AS2 settings (requirement for the site is downloaded to).

My objects have suddenly to their original position, if they don't land on their target, and I have this job. What I can't get to work is for the object to fit in the box, that I created.

The object and target have been converted to the clips and the taget received an instance name (targetone) I have used this instance name in the script action that is set on the object. Both target and object have centered their anchor points for X, Y of the purposes.

Here are my actionscript:

(press)

{

startDrag (this);

}

(release)

{

stopDrag();

If (this ._droptarget == "/ targetone")

{

This._x=_/targetone._x;

This._y=_/targetone._y;

}

else {}

This ._x = 319,95;

This ._y = 138.75;

}

}

He won't just snap into the box. The object is converted into paths (large print) text and the box is also important. I tried to increase it because I thought he might have problems with locking in but nothing works

Any help would be greatly appreciated!

Stu

Thanks for the reply, Ned.

After a few hours of different script code tests, including your suggestions, I tried to draw an object directly on the stage and it worked.

I use the boxes which are .ai files and they were imported to the library with layers and effects intact (as separate components). I discovered that the boxes that I designed in Illustrator are too complicated to assign a code to-I guess it's because it has layers.

I've got around it by drawing a simple box in Flash, by positioning on versions of illustrator and in making it invisible. Problem solved!

Detective Conan

Tags: Adobe Animate

Similar Questions

  • Drag & Drop - increasing the action in the action of the object area begin to run the slide

    In the slide drag and drog I use the Action object to a target object. I would like to increase the value of a user variable when the learner move the source properly object to the target object. Without this object Action, the blade was arrested after 1.5 s how you described. This is the correct way. But if the Action of the object has been used, the slide stop. So what do you think, is it a problem of understanding or is this an error in the program? Could you send me your appreciate the opinion? Cordially to Leobersdorf in Austria by Gerhard.

    Object Action in drag and drop slide let the slide running.gif

    Hello

    You will find the solution in my blog: advice & glide - Captivate blog

    The problem is that a simple gesture, like you use it for the action of the object, always free the read head. You will need to replace it with a tip or shared action standard. Same situation happens everywhere when you raise a simple action: Why choose Standard Simple action?-Captivate blog

  • How to edit a map with a view that the target object?

    Environment: OWB 11 GR 2

    I imported several cards of our old OWB 10.1.0.4 environment that have a view as the target object. In this version if I wanted to make a change to the definition of the view, I want to update the map and an outgoing "balance" to the view and it would update the View object with the SQL update. I would then deploy the view and obviously not the card.

    I tried to do the same function in OWB 11 GR 2, but I have not yet found the thing. IMHO the documentation is very vague, weak, in this area, at least the many pages I've read.

    I opened the card for editing and when I select the view target object and look at the Properties window, the link to the SQL code is empty, even if this isn't the SQL code of the View object.

    I tried to use it out 'synchronize' in several different ways, but could not do any SQL appear in this properties link. I also noticed that the SQL code of the View object is now empty as well.

    What Miss me?

    Thank you very much!!

    -gary

    Hi Gary

    You use the 'create and link... ". "on the operator to see in the map (right mouse click on the operator for the menu option) and select a name and a module.

    See the blog post here that describes it well than its gr 10, 2 and 11 GR 1 material, but its exactly the same thing for 11 GR 2.
    http://blogs.Oracle.com/warehousebuilder/2007/07/what_is_new_in_11g_and_10203_f.html

    Create and link is like synchronize the first outgoing - if you can consider it, weird I know, but that's how.
    See you soon
    David

  • I'm looking for all the cards that have a VIEW as the target object.

    Environment:

    OWB Tahoe development Version 11.2.0.1 Client on Windows 7
    Repositories on Oracle EE 11.2 on AIX

    Is there a way via the repository tables or OMB (shudder!) to get a list of all the cards that have a VIEW that the target object?

    Thank you very much!!

    -gary

    Try this:

    Re: How metadata repository OWB mapping?

    **************
    (1) log under user OWBSYS
    (2) run a procedure owbsys.wb_workspace_management.set_workspace

    exec owbsys.wb_workspace_management.set_workspace ('', '');
    (3) now the public view contains rows
    (4) at the end of the work to perform the owbsys.wb_workspace_management.unset_workspace procedure

    exec owbsys.wb_workspace_management.unset_workspace ();

    *************

  • Drag and drop - moved outside the target object

    Hello

    It's my first drag and drop object.  It went pretty well except for nitpicking a few things.  I'm hoping to get help on one of these.

    A sample of my screen is below.  The basic idea is that you drag one of the words in the dotted box, and I'll give you a sound feedback, whether good or bad.  I'm tiling the answers and this is my question.  Sometimes, if I already have one correct answer in the box and drag each other directly on the existing answer, he'll put it on the side and it seems that it is in the next box.  An example is below.  This happens very rarely, but I still want to go to the bottom of it.  I resized the boxes, made the smaller font and I reduce the size of the response when he goes inside the box.  But it still exists.  If they hang out below the existing response response then it works fine.  Does anyone know what is the answer?  I have the screen below, as well as the settings of the target in the example below that.  any help would be greatly appreciated.  Thank you!

    dnd question.gif

    target settings.gif

    That's the problem with tiling. You can reduce the size of drop even more (90%), try one of the other options in the second row of tiles. Or choose absolute, which means that it has no real alignment, control, but text will stay where the user puts.

  • How to drag - drop in the windows photo gallery?

    All I get ts a red circle with a red line in it.

    Hi GeorgeDuncan,

    Are you aware of any hardware or software changes, prior to the beginning of the question?

    You cannot drag, drop or move the pictures in windows photo gallery, but you can do a right click in the empty space of the image window and use options such as group by, sort by, etc. to organize photos. You can even mark photos for storing photos

    You can also check out the link for more information on tags - below

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-organizing-pictures

    For reference:
  • Drag drop items to target multiple areas

    Hello

    I'm doing a quiz on metals. I have several things I want to fall in several target areas (for example the target areas are grey shadow in the following swf; metal_mc, nonmetal_mc, metalloid_mc). I can do individuals match target areas (as it has tutorials for it) but I want everyone can slip into any target area (and someday I want to create a button which will then each item at the right place).

    http://megaswf.com/serve/65365/

    I started all over and have designated only the chlorine to move (for the moment), but how I code to drop into one of the grey areas?

    var objectoriginalX:Number;
    var objectoriginalY:Number;
    chlorine_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    chlorine_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {}
    event.target.startDrag (true);
    }
    function dropIt(event:MouseEvent):void {}
    event.target.stopDrag ();
    }
    chlorine_mc.buttonMode = true;


    function pickupObject(event:MouseEvent):void {}
    event.target.startDrag (true);
    event.target.parent.addChild (event.target);
    objectoriginalX = event.target.x;
    objectoriginalY = event.target.y;
    }

    (I want to do in AS3)

    any ideas or other similar tutorials most appreciated.

    Thank you very much

    sosodef

    If you always try to make it work, you must use event.target.dropTarget.parent to point to the clips that are the target, like you had yesterday.  event.target.dropTarget points to what is inside these clips of target.

  • How to get the targeted object

    can you tell, how to get the object currently targeted in a class

    for example, if I use the labelfield that has his focus, how to get and make changes to the text of labelfield

    I hope that you can get that I tried 2 say

    Thank you

    Not in a class, screen...

    Features screen with a method called getFieldWithFocus...

    Check it out...

    See you soon...

  • Difficult to drag / drop in the timeline

    I use a 15 "MacBook Pro with OS X 10.8.2.

    When I drag and drop the assets of the project or the preview in the timeline window, the screen jumps in zoom in sight, as it tries to help me, but it's not. The same thing happens when I try to drag horizontally or vertically in the timelime. Here is a small video on Vimeo to show you the desires that passes.

    It is a known issue on Retina displays.

    Your computer is equipped with retina? There are still a number of bugs in it.

    Otherwise, what is the resolution of your monitor to laptop? The program requires a minimum resolution of 1024 x 768 - and in my books, I recommend that to see the workspace and its panels, you have at least 1280 x 1024.

  • Noob question - the target RT can display its façade?

    Hello everyone, I am a complete newbie to labview rt (in fact, I've not yet started) and I was wondering if a controller labview rt target, when it is configured for stand-alone operation, can use its video output. Thank you, Karel.

    Hello

    You mean by output video, video of the cRIO. We have 9082 which output VGA. In this case, you can monitor the nets and the use of the CPU on a screen.

    If you refer to the façade, there are ways in which you can see, but only for debugging purposes, over the long term you should not use it.

    There are other techniques to transfer data from the cRIO to a computer to view the data.

    In fact, there are three ways:

    1 using the variables shared over the network - you can learn more here http://www.ni.com/white-paper/12176/en

    2. with the help of TCP/IP communication - read here http://www.ni.com/white-paper/3098/en

    3. network flow - read here http://www.ni.com/white-paper/12267/en

    Kind regards

    Ion R.

  • Shift drag & drop inside the sequence

    When I drag an item or the file of my project in a sequence my slider Panel is shifted to the left and to the top of the item itself. Is it possible to fix this?

    image1.JPG

    The fixed. Had to go into the system preferences/display. And sets mirror the dual display and UN-mirror them. Very strange.

  • Unable to get the targeted object


    Try getLeafFieldWithFocus(), I always find it going past the Manager and gets the real field.

  • Drag / drop the missing tab

    I'm sure I have seen this before, but don't find it on a research forum.

    Yesterday, I created a slide drag & drop; closed the Captivate and turned the computer off for the night.  This morning, I have no 'Drag & Drop' tab on the right (next to 'properties' and 'calendar') Panel.  "Drag / drop" in drop down menu interactions is grayed-out.

    (version 8.01.242)

    Menu 'window', then check that "drag & drop" is selected.  Oh!

  • If a learner drags an object to the target of wrong depot, I want 9 Captivate suddenly the object in its original position immediately. Is this possible?

    If a learner drags an object to the target of wrong depot, I want 9 Captivate suddenly the object in its original position immediately.  For example, if I drag OBJECT_A to DROP_TARGET_A (i.e. to the good drop target), it should align on the drop target. But if I drag OBJECT_A to another location on the screen, I want OBJECT_A abruptly to its starting position. I don't want to use the send button or any message feedback. Is this possible?

    If not, is it possible to let objects correctly dropped on their drop targets (correct) as soon as the learner clicks on Submit, while allowing the wrong objects fall back to their starting point? I'm not a complex solution of coded manually; just a question if it's something easily configurable via the standard properties for drag-and-drop panels.

    Thank you!

    -Ray

    Hi Ray,

    It is possible in Captivate. You can select the wrong target, click on the 'actions Object' from the Panel drag / move. Uncheck the "OBJECT_A" of the dialog "drag Source has accepted." Repeat the same for all incorrect targets/sources.

    Thank you

    VERALINE Sukumaran.

  • To drag and drop questions and serialization in the review of upgrade of 1Z0 - 852?

    Hello

    Does anyone know if the serialization and drag / drop items have been removed from the exam 1Z0-852 of Java SE 6 programmer Certified Professional UPGRADE?

    I know that they have been removed from the exam 1Z0-851, but not sure about the upgrade exam.

    Thanks in advance,

    Alvaro

    Alvaro wrote:
    Hello

    Does anyone know if the serialization and drag / drop items have been removed from the exam 1Z0-852 of Java SE 6 programmer Certified Professional UPGRADE?

    I know that they have been removed from the exam 1Z0-851, but not sure about the upgrade exam.

    Thanks in advance,

    Alvaro

    (1) drag and Drop

    ... this question format will be deleted:

    Ref: http://blogs.oracle.com/certification/entry/0596

    (2) serialization:

    It is best to compare the themes of your notes for the current issues, but according to my reading of the news he is brought at least to some extent:

    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=41&p_exam_id=1Z0_852 (Section 3 API summary):

    Develop code that serializes and deserializes objects using the following APIs from java.io: DataInputStream, DataOutputStream, FileInputStream, FileOutputStream, ObjectInputStream, ObjectOutputStream and Serializable.

Maybe you are looking for