AS3 drag / move

Hi all

I have a problem with my drag and drop puzzle

everything worked fine until I added that the draggable content to a movieclip called pieces_mc which should go the nextFrame after a target has been met.

ask yourself if you can see what is wrong, I think I need to point the movieclip on event.target but how to do this?

Stop();

var startX:Number;
var startY: number;
var counter: Number = 0;
var tent: Number = 0;

finished_mc. Visible = false;
help_file_mc. Visible = false;

pieces_mc.jig1_mc.buttonMode = true;
pieces_mc.jig2_mc.buttonMode = true;
pieces_mc.jig3_mc.buttonMode = true;
pieces_mc.jig4_mc.buttonMode = true;
pieces_mc.jig5_mc.buttonMode = true;
pieces_mc.jig6_mc.buttonMode = true;
pieces_mc.jig7_mc.buttonMode = true;
pieces_mc.jig8_mc.buttonMode = true;
pieces_mc.jig9_mc.buttonMode = true;
pieces_mc.jig10_mc.buttonMode = true;


pieces_mc.jig1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig5_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig5_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig6_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig6_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig7_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig7_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig8_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig8_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig9_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig9_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pieces_mc.jig10_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pieces_mc.jig10_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);


function pickUp(event:MouseEvent):void {}
event.target.startDrag (true);
reply_txt. Text ="";
event.target.parent.addChild (event.target);
startX = event.target.x;
startY = event.target.y;
}
function dropIt(event:MouseEvent):void {}
event.target.stopDrag ();
var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName (myTargetName);
If (event.target.dropTarget! = null & & event.target.dropTarget.parent == myTarget) {}
Event.Target.Play ();
pieces_mc.nextFrame ();
borders_mc.parent.SetChildIndex (borders_mc, borders_mc.parent.numChildren - 1);

reply_txt. Text = "Good Job! « ;
event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

event.target.buttonMode = false;
Event.Target.x = myTarget.x;
Event.Target.y = myTarget.y;
counter ++;

} else {}
reply_txt. Text = "Try! again « ;
Event.Target.x = startX;
Event.Target.y = startY;
tent ++;
}
If (tent > = 15) {}
tries_txt. Text = "fi";
}

If (counter == 10) {}
borders_mc. Visible = false;
targetjig1_mc. Visible = false;
targetjig2_mc. Visible = false;
targetjig3_mc. Visible = false;
targetjig4_mc. Visible = false;
targetjig5_mc. Visible = false;
targetjig6_mc. Visible = false;
targetjig7_mc. Visible = false;
targetjig8_mc. Visible = false;
targetjig9_mc. Visible = false;
targetjig10_mc. Visible = false;
pieces_mc.jig1_mc. Visible = false;
pieces_mc.jig2_mc. Visible = false;
pieces_mc.jig3_mc. Visible = false;
pieces_mc.jig4_mc. Visible = false;
pieces_mc.jig5_mc. Visible = false;
pieces_mc.jig6_mc. Visible = false;
pieces_mc.jig7_mc. Visible = false;
pieces_mc.jig8_mc. Visible = false;
pieces_mc.jig9_mc. Visible = false;
pieces_mc.jig10_mc. Visible = false;
finished_mc. Visible = true;
reply_txt. Text = "congrats, you're done! « ;
}
}

Thanks in advance for any help

fonzio

Line 11 of your code seems to be in the middle of the pieces_mc... buttonMode lines.  If this is the case, then I would say that among the instance names "Jig #_nc" could be a problem (misspelled, not, etc.).  If you know that the object that the code tries to target does not exist in this framework, then the only cure is to exist in this context.

Tags: Adobe Animate

Similar Questions

  • Drag / move does not work

    Windows Explorer - updated my computer with the latest updates of Windows XP on February 26 - since then the function drag / move on Windows Explorer (and my office) didn't work. I did a scan full antivirus and came out the own. Also checked the properties of the task bar and Start Menu and confirm the Drag and Drop check box is checked. No new hardware recently added with the exception of an APC battery backup. Suggestions for remedies?

    Hello

    1. have you made changes on the computer recently?

    Method 1.
    Let us first start the sfc scan and check if there are any file system corruption.
    a. to do this, click Start, click programs, accessories principally made, right click Guest and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.
    b. type the following command and press ENTER:
    sfc/scannow
    The sfc/scannow command. analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.
     
    More information on SFC scan found in this document:
    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
    http://support.Microsoft.com/kb/310747

    Method 2.
    If the problem persists, then create a new user profile and then copy your current users assigning to this profile. For more information, see:
    How to create and configure user accounts in Windows XP
    http://support.Microsoft.com/kb/279783

    How to copy data from a corrupted to a new profile in Windows XP user profile
    http://support.Microsoft.com/kb/811151

    How to recover damaged Windows XP user profile
    http://support.Microsoft.com/kb/555473

    I hope this helps.

  • Cannot drag move & on win7 x 64 programs

    Hello, I need help on why I can't do drag & drop of images/files on programs such as Photoshop CS5 / CS6 or images/files to other programs & browsers.
    I CAN do drag & drop under windows and folders, etc, but not in the programs. I read almost all the solutions found here and on Google without success. I went from keyboards and mouse still nothing, checked the settings in the menu start-star & options in IE8, cleaned the registry with ccleaner, I tried the keys ESC and combo but again without success.

    It is a new installation of Windows 7 ultimate with the latest drivers from the website or x 64. I have a Windows 7 x 86 as well (same setup with the x 64) and I can do all the drag & drop on it.
    This bothers me because I do a lot of hanging around in photoshop and other editing software.

    Thank you very much in advance.

    Hello

    1. what happens when you try and drag - move?
    2. This involved for other users on the computer?

    Method 1:

    I also suggest a clean boot to see if a third-party program has been installed and that it interferes with the operating system.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: after a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.

    Method 2:
    In Photoshop CS5 a new image opens as a new layer, and not as a new document. For example, you can create a document in Photoshop, first, and then see if drag - déposer works.

    Method 3:
    Try to create a new user account to see if the same behavior occurs.
    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

  • Can't see the dimensions for drag - move to create dataforms: Oracle EPMA planning

    I m trying to create a "simple dataform" but cant seem to find the dimensions for drag - move so I can create it. I can see dimensions in the Pan "POV", but nothing in the pots line and column as you can see in the screenshot.

    Screenshot from 2014-10-28 14:20:43.png

    I missed something?

    would appreciate any suggestions,

    I got it. We are supposed to drag and drop dimensions using the icon

  • Drag / move in libraries and nothing appears in the library

    I opened a document in illustrator and drag and item in the library and nothing appears in my library panel?

    Hi Ausmack,

    This is a problem known to the Illustrator team with a certain configuration of operating system (studied at the moment) the behaviour of drag - move in the design in artificial intelligence Library Panel does not work.

    Until then, you can try adding the asset using the buttons/icons that appear at the bottom of the Panel "libraries."

    Thank you best regards &,.

    Rambour

  • Drag / move - how to reset the feedback?

    Hello

    I have a drag and drop into a slide (Captivate 7).

    Problem: I need your feedback an interaction drag-and - drop is reset whenever the learner back to the slide / move later.

    Background: Learners complete the drag / move and gets feedback "Correct!" or "Incorrect". The learner then continues the lesson on the way to the next slide. The problem is that, if the learner is returned for drag / move, 'Okay!' or 'Wrong' feedback still shows that the drag source items are reset to their original locations and the learner can repeat the interaction drag-and - drop. By clicking on the button "Reset" does not remove the existing 'Correct '! or feedback "incorrect." Even if the learner restores the interaction and the opposite effect (for example if the learner is wrong the first time, but then correct themselves the second time), the existing comments don't change e.g. 'Wrong' to 'correct '.

    Any ideas on how to solve this problem?

    Thank you!

    It worked!

    I had to also run the tip at the entrance Action, not just at the exit. Weird, but hey, it worked!

    see you soon

  • DND (drag / move) and listeners

    I want to drag a JComponent with all its properties and the Auditors.
    How can drag you listeners registered to a component when you perform a drag-and drop?

    I have an extension of a JTextArea. I got drag and drop it into another container.
    After release, some of the listeners don't work anymore.
    I can cope with headphones I've added manually, but not initialized or added somewhere else during initialization of the component.

    For example, I have the following 3 headphones on JTextAre:
    dot = 0, class = 0 javax.swing.text.JTextComponent brand $MutableCaretEvent
    javax.swing.plaf.basic.BasicTextUI$DragListener@25cbfa42 class javax.swing.plaf.basic.BasicTextUI$ DragListener
    Dot = (0, Forward) Mark class javax.swing.plaf.basic.BasicTextUI (0, forward) = $BasicCaret

    After release, the new component has 4 listeners, the MutableCaretEvent is double and one of the two no longer receive events.
    dot = 0, class = 0 javax.swing.text.JTextComponent brand $MutableCaretEvent

    If I drag and drop the JTextArea autour, for every drop of the number of listeners of MutableCaretEvent increases. If I drag the JComponent about 10 times for example,
    I'll have 11 MutableCaretEvent listeners.

    So my questions are:
    1 - How can I remove the MutableCaretEvent that no longer work?
    2 - should that other listeners I care? How 'Add' those who eventually doesn't work anymore after the decline?
    3-is there a way to move a JComponent from one container to another without going through the process of serialization (drag / move)?

    Thank you

    Published by: 849866 on April 5, 2011 03:34

    Published by: 849866 on April 5, 2011 03:35

    What is even work considered less listeners? It seems that you remove the component in exportDone of the target component. Also, you must call revalidate(); Repaint(); on the container if dynamically add you items.

    I don't know if the serialization uses the default constructors. If he does it would add additional listeners. You might want to just export the reference to the component (mimetype localObjectRef or something like).

    Please do a NBS (simple chassis, two panels and a text box to slide between them).

  • Drag / move image is duplicated

    Hello

    In my code, I want to drag an image in a list populated from a folder, and its information are filled with an xml file. Now, I can drag the image in the list and drop it into the container, however, when now, I want to drag around the deleted image, it is duplicated, an extra image is created in the Web. So, if someone can tell me how not to create an additional copy of the image in the new container (canvas) that he was dragged in.

    Here is the code:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="vertical" "

    name = "Drag and Drop tutorial"

    creationComplete = "init ()" "

    initialize = "pictureService.send ()" >

    < mx:Script >

    <![ CDATA [ ]

    import mx.controls.Image;

    import mx.core.DragSource;

    import mx.core.IUIComponent;

    import mx.managers.DragManager;

    import mx.events.DragEvent;

    import mx.controls.Alert;

      

    import mx.rpc.events.FaultEvent;

    import mx.rpc.events.ResultEvent;

    import mx.collections.ArrayCollection;

    [Bindable] private var pictureData:ArrayCollection;

    private void resultHandler(event:ResultEvent):void {}

    pictureData = event.result.data.image;

    }

    private void faultHandler(event:FaultEvent):void {}

                //code

    }

    public void init (): void

             {

    / / a mouseDown event will begin the drag

            

    list.dataProvider = pictureData;

         

    //picture in the list is moved

    this.picture.addEventListener (MouseEvent.MOUSE_DOWN, beginDrag);

    / / accept drag - move...

    this.area.addEventListener (DragEvent.DRAG_ENTER, acceptDrop);

    / / treatment of gout...

    this.area.addEventListener (DragEvent.DRAG_DROP, handleDrop);

             }

            

    function public beginDrag (mouseEvent:MouseEvent): Sub

    {

    / / the initiator of the drag is being moved (target of the mouse event)

    var dragInitiator:IUIComponent = mouseEvent.currentTarget as IUIComponent;

         

    / / the drag source contains data which is moved

    var dragSource:DragSource = new DragSource();

         

    / / Add data to the object.


    dragSource.addData (1, 'value');

                 

    / / Create a copy of the piece to use as the drag proxy image.

    var dragProxy:Image = new Image();

    dragProxy.source = mouseEvent.currentTarget.source;

    dragProxy.setActualSize(mouseEvent.currentTarget.width,mouseEvent.currentTarget.height)

         

    / / ask the DragManger to start drag

    DragManager.doDrag (dragInitiator, dragSource, mouseEvent, dragProxy)

    }

    acceptDrop (dragEvent:DragEvent) of the public service: Sub

       {

    var dropTarget:IUIComponent = dragEvent.currentTarget as IUIComponent.   

    / / accept the fall

    DragManager.acceptDragDrop (dropTarget);

    / / post your comments

    DragManager.showFeedback (DragManager.COPY);       

       }

      

    handleDrop (dragEvent:DragEvent) of the public service: Sub

       {

    var dragInitiator:IUIComponent = dragEvent.dragInitiator;

    var dropTarget:IUIComponent = dragEvent.currentTarget as IUIComponent;

         

    If (dragEvent.dragSource.hasFormat("items"))

      {

    var table: items = dragEvent.dragSource.dataForFormat("items") as array;

    var img:Image = new Image();

    img.x = dragEvent.localX;

    img.y = dragEvent.localY;

            img.width = 50;

            img.height = 50;

    img.source = "' assets / ' + points [0] user.user +".jpg"; "

    img.addEventListener(MouseEvent.MOUSE_MOVE,beginDrag);

           

    area.addChild (img);

       }

       else

       {

    dragEvent.dragInitiator.x = dragEvent.localX

    dragEvent.dragInitiator.y = dragEvent.localY

       }

           

       }

      

    ]]>

    < / mx:Script >

    < mx:HTTPService id = "pictureService".

    url = "" data / data.xml " "

    result = "resultHandler (event)" "

    fault = "faultHandler (event)" / >

    < mx:DataGrid id = "list" = "238" height = "200" width = "26" x = "10" labelField = 'src' dragEnabled = "true"

    dataProvider = "{pictureData}" >

    < mx:columns >

     

    < mx:DataGridColumn dataField = "id" id = "code" >

     

    < / mx:DataGridColumn >

    < mx:DataGridColumn id = 'image' draggable = "true" >

    < mx:itemRenderer >

    < mx:Component >

    " < mx:Image source="assets/{data.id}.jpg "/ >

    < / mx:Component >

    < / mx:itemRenderer >

    < / mx:DataGridColumn >


    < / mx:columns >

    < / mx:DataGrid >

    < mx:Canvas id = "space" x = "266" y = "28" width = "436" height = "401" backgroundColor = "#c0c0c0."

    dragDrop = "handleDrop (event)" > "

    < / mx:Canvas >

    < / mx:Application >

    your handleDrop is called twice. you have assigned this twice - init function and the other online eventlistener.

    remove one and it works.

  • Android Air As3 - jerky movement strategy Lag

    Hi, im new to this forum so please forgive me if I have a question in the wrong section.

    I have a problem with Android Air Performance when moving from a movieclip (interpolation) inside a movieclip to a strategy game.

    Let me explain what my structure looks like:

    I have a Movieclip named 'BG' 1280x720pixel preparing to drag Double click on the mouse event that works very well. Inside the BG movieclip, I have an another Movieclip called "Builder". The code below is the "constructor" to move. However, my problem is that when it moves on a Tween and I drag the movieclip "BG" at the same time, occurs a jerky movement.

    I tried to put the movieclip "Builder" in the same location on another layer than the movieclip "BG", by twisting the AS3 code and works fine but the manufacturer only moves from the stage and NOT in the BG movieclip.

    What I want is (located inside the BG movieclip) movieclip generator to move smoothly while being able to drag the BG movieclip at the same time. However it does not lag...

    CODE for the movement of generator:

    var targetX:Number;

    var targetY: number;

    var inTransit: Boolean = false;

    var speed: Number = 5;

    stage.addEventListener (MouseEvent.MOUSE_DOWN, mouse click);

    stage.addEventListener (Event.ENTER_FRAME, update);

    function mouseClick(e:MouseEvent):void

    {

    targetX = BG.mouseX;

    targetY = BG.mouseY;

    transit = true;

    }

    function update(e:Event):void

    {

    First check to see if we must move forward

    If (! transit | isNaN (targetX) | isNaN (targetY)) return;

    find the direction to the target

    var i: Number = targetX - BG.builder.x; x direction

    var j: Number = targetY - BG.builder.y; y axis

    Now let's see how close you are to the target

    If you're closer, then speed, then make sure that the amount of your change

    mag var: Number = Math.sqrt (I * i + j * j);

    var dif:Number = Math.min (mag, speed);

    If (dif < speed) in transit = false; turn off transit when you got it

    now make your direction a unit vector

    I / = mag;

    j / = mag;

    then multiply by your dif to get

    the speed of your object vector

    I * = dif;

    j * = dif;

    If (off = true) {}

    BG.builder.x += i;

    BG.builder.y += j;

    }

    }

    CODE FOR the event drag mouse 'BG ':

    BG.addEventListener (MouseEvent.DOUBLE_CLICK, fl_StartDrag, false, 0, true);

    BG.addEventListener (MouseEvent.MOUSE_UP, fl_StopDrag, false, 0, true);

    function fl_StartDrag(e:MouseEvent):void

    {

    OFF = false;

    e.currentTarget.startDrag (false, fl_DragBounds);

    e.currentTarget;

    counter = 1;

    BG.addEventListener (Event.ENTER_FRAME, updateCounter);

    }

    function fl_StopDrag(e:MouseEvent):void

    {

    e.currentTarget;

    e.currentTarget.stopDrag ();

    BG.removeEventListener (Event.ENTER_FRAME, updateCounter);

    }

    How can I do to fix the problem, and why is this problem or delay?

    Please forgive me as I'm new to Flash and still learn

    Thank you

    AlpaxJ1

    every object that has x, y of changes (and no other changes) should have its cacheAsBitmap property enabled.

    each object which undergoes additional changes (excluding the movieclips that change managers) must have its active cacheAsBitmap and its cacheAsBitmapMatrix assigned (usually at a new matrix())).

  • It's as soon as possible to simply drag - move the TBird address book collected addresses in a personal address book. Why this easy to use feature was dropped?

    I want to copy the user and the e-mail information to one personal address book to others...

    It still works like that. Preventing you to do this?

    If you drag and drop this moves the contact from one book to the other. To copy you must hold the Ctrl key while doing. A plus sign appears to indicate a copy and not move.

  • I want to copy some addresses in the personal address book to a specific address book without the chore of typing each of them. Dragging moves simply address.

    I want to create specific address (for membership to the club) books. Click on the entry in the personal address book does give not an installation "COPY", and do drag from one to the other removes the personal address book. Is it possible, other than having to retype each address in the new book, which will allow the address to appear in the two books? OK - I know I'm lazy!

    Learn how to use the copy/move techniques and selection of basic computer.
    Hold down the CTRL key while clicking on contacts to select more than one at a time.
    Hold down the CTRL everything to drag and drop to copy instead of move. A plus sign to indicate the copy.

  • Windows 7 Explorer and drag / move icons to reposition.

    I'm having a problem with the Explorer of Windows 7.
    In Windows XP when in Windows Explorer, I am able to select pictures and miniatures, tiles or the icons and then re - position file icons in the pane of files by left clicking and then dragging the icon to the position I want. I can't find how to do this in Windows 7. I am very visual and I need to be able to move the file icons that I work with them. Alphabetical sorts do not work for me. I think that this feature exists since at least Windows 95, 98, 2000 and XP. I am able to move icons on the desktop to any position, I want to use the drag and drop method, and that's what I want to do in Windows Explorer.
    Any help is welcome. Thank you.
    I tried going through the help of Explorer in Windows 7 and can't find anything to help me. I also researched on the web a vast nothing helps.
    The computer is a brand new Thinkpad SL510 Windows 7 Professional 32 bit.

    StillInTrouble,

    Thank you for visiting the Microsoft answers community. This feature has been changed in Windows 7 by design, however, if this is something you want restored, you can send your suggestion to Windows 7 comments.

    Thanks again.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Drag / move too easy to lose files

    Some of my colleagues are a little loose with drag them and drop which means that files are lost by mistake.  I suggested that they do a right-click to get the possibility to cancel, but is there a place to force a pop-up window asking if you really want to say to move or copy an option?  THX

    You can set it so that it requires a longer brake actually causes wildfire to occur.  Normally if you click and hold an icon, and begin to drag, you move 4 pixels before it actually starts dragging.  You can change this to a larger number so that it requires a very deliberate movement until it starts to drag.

    Here's how.

    ATTENTION: Always backup the resistry before making any changes. To do this in the registry editor, select file/export. In the scope of the export, all options you select. Save the file to the desktop. If something goes wrong, you can right click on this file to restore the registry.

    1. Press on the + R to bring up the Run dialog box. Type regedit.exe in the Open box, and then click OK.
    2. Navigate to the following key.

      HKEY_CURRENT_USER\Control Panel\Desktop

    3. In the right pane, find the following.

      DragHeight and DragWidth. These two values will have a value of 4data.

    4. Right-click each of these values and select Edit. In the value data box, type 20 click OK.

    You will need a Log Off/Log on to see the results.

    Test the new setting to see if it works for you. If 20 does not work for you, increase the value 30, etc., until you find the setting that your satisfaction with.

  • codesnippent createjs equivalent of flash as3 drag and drop the code snippet

    AS3 deafult code snippent for drag and drop

    circle.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);

    function fl_ClickToDrag_3(event:MouseEvent):void

    {

    circle.startDrag ();

    }

    stage.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);

    function fl_ReleaseToDrop_3(event:MouseEvent):void

    {

    circle.stopDrag ();

    }

    I just tried to convert this code createjs. but my code does not

    / * js

    var t1 = this;

    {circle.addEventListener ('mousedown', function (e)}

    {stage.addEventListener ('stagemousemove', function (e)}

    T1.x = stage.mouseX;

    T2.y = stage.mouseY;

    });

    {stage.addEventListener ('stagemouseup', function (e)}

    e.target.removeAllEventListeners ();

    });

    });

    */

    are you trying to drag and drop the circle?  If so,.

    var tl = this;

    tl.circle.addEventListener ("mousedown", downF)

    function downF (e) {}

    stage.addEventListener ('stagemousemove', moveF);

    stage.addEventListener ('stagemouseup', upF);

    };

    function upF (e) {}

    stage.removeAllEventListeners ();

    }

    function moveF (e) {}

    TL. Circle.x = stage.mouseX;

    TL. Circle.y = stage.mouseY;

    }

  • How do I drag - move in Adobe Content Viewer?

    I do an iPad app that uses a large interactive animation in Adobe Edge animate and will be placed in InDesign. The application uses by scanning and drag-and-drop, however the nature of the content viewer Adobe means I can drag, but the shots of the entire page with him to reveal the white edges, and drag-and - move does not work. I tried if I can disable drag horizontal which I think could solve my problem, but found that no one seems to have found a solution that allows interactivity, the last discussion in June of last year I think. I guess that there are no updates for this?

    If there is no way to do it in DPS, is there another way to put the InDesign file or the file Edge animate on an iPad (free or reasonably cheap, because I can't afford much since I'm a student and this is a University project) which would make the work of drag-and-drop? Maybe even open the HTML from the edge of the file in a web browser, or publish it as an iBook?

    Thanks in advance, if all goes well there is a solution, it was driving me crazy and I have to change the way the application works if not!

    I managed to drag and drop to work in iBooks, and I prefer to use it in iBooks; the page does not move when I drag. Of course, it is not ideal because I do an application instead of a book/magazine, but it works for what I want, because it will be on display at an exhibition on an iPad. The only problem I have now is that when I drag the object, it is constantly a few cm of my finger/cursor; any idea?

    For any other interested person (although it was more research for the correct keywords for me), I used the plugin of jquery draggable as explained here, and the tactile punch to here plugin that allows the draggable plugin works on touch devices. I've not tested this DPS, but I guess it will work, or unzip the .oam file, copy in the draggable plugin then zipping him yet, as explained in this discussion.

    Also do not know if I should mark this as correct or not? It seems strange to choose my own answer is just...

Maybe you are looking for

  • SPM30 high temperature

    Hi all,I have a problem? with my laptop SPM30.When it is on and connected to the power, the temperature rise to uncomfortable levels (without equal treatment no matter what). The cones normally on both fan.The temperature reachedbelow: 55 oCpalmrest

  • rings of iPhone except when the House goes directly to the virtual machine

    My parents (latest OS) iPhone seems sound perfectly, EXCEPT when you get a call from their home number.  When home iphone, iphone phone calls don't ring and goes to voicemail. Is there any setting that has selective phone number behaviors that could

  • Wireless connection on Satellite A60 743 does not work properly

    I can't get any connection to wireless internet with my laptop. How can I use it? This notebook should have wireless, but I tried to connect and nothing happens! Please help me! Best regards NASI

  • Units of transfer functions

    Hello I want to implement a model of first order using the LabVIEW simulation module. I use a Solver ODE fixed step with the size of level of 0.1 s and I put the simulation step size (100ms) equals loop period. Transfer functions have a unit preset t

  • IOS - XR XRv

    Hello Looks for 4.3.2 release notes indicate a coming download for XRv (XR4U?).  4.3.2 is available for download now for ASR9000 and CRS.  Anyone know when we might see a download for XRv? http://www.Cisco.com/en/us/docs/routers/asr9000/software/asr9