Problem by dragging the object 3D (CS4)

I have a movieClip/displayObject that contains multiple child display objects, only 1 of which I can move using startDrag(). Everything is good until the parent is transformed with a Tween rotationY. Once this is applied the startDrag code no longer works and I can't move the clip around more, even if the rotationY value is back to 0. Is there anyway to get around this problem. I looked on the web and that you did not find the body with a similar problem. I assume a 3D problem which is new in CS4 its still early days for problems finding.

Is it possible to reset the displayObject to a normal via actionscript display 2D object when the Tween is completed.

Any ideas on this would be greatly appreciated.

Its always the case, you add a question on a forum and then manage to resolve before someone answers.

I managed to solve my problem and managed to get the object by saving a copy of the the displayObject's transformation matrix before the 3D transform is applied and then then I apply just the saved matrix return. Then, it erases any substance 3D and allows the startDrag things start working again.

Save the matrix
var savedMatrix:Matrix = myClip.transform.matrix

make your 3d stuff to your clip

reset the clip
myClip.transform.matrix = savedMatrix:Matrix

Tags: Adobe Animate

Similar Questions

  • Can't see the content move it by dragging the object - only to see frame by dragging

    Hello

    It's driving me crazy.  I just upgraded to indesign CS4.  In CS4, when you drag an image we always see the content in the frame when dragging - text, images, fill color, etc..  This allows you to be more specific when you place objects.  In CC, when I drag an object, all that I see is the frame dragging - the content disappears until I release the cursor.  Please tell me that there is a setting for this?

    Thank you!

    Click on, then hold a moment before you drag or change preferences under the Live screen design and change immediate.

  • Problem by dragging the PS window to the 2nd screen/monitor

    I have a MacBook Pro which is 10.10.5 and Yosemite.  I have a 2nd monitor is an ASUS.  I had been their mirror so far, but due to calibration problems, I do is no longer that.  How can I drag Photoshop CC on the 2nd monitor?  I have my put monitors in place on the Mac preferences they are upstairs and downstairs.  I drag my programs to my ASUS but PS does not allow me to drag the program.  I tried to open another window in PS.  I tried read but can't seem to get it.  Any help is appreciated!

    Try to disable multiple monitors or commit ' mirroring '. The enforcement framework will be then jump under the menu bar. See OS x: how to use several displays with your Mac in Lion mountain and even before - Apple Support

    ~ Assani

  • Captivate 7 slides adio times, but drag the objects are not

    I make a slide with a picture and then I used a Smart Board to annotate this picture to explain in my presentation.  To put these handwritten annotations in, I just copied and pasted on the slide.  Then I did a recording of voice for this slide and aligned all the notes ink to appear at the appropriate time in the recording.  However, when I saw the slide, the recordsets, but annotations are not.  I do not have a game bar, but in the upper corner of the preview, there are controls to navigate through the project.  When I hit the game to the top here when the slide is displayed, then the objects appear when they should.  What could cause this and how can I solve this problem?  Thank you!

    My hunch is correct. You have a form button (first Smartshape from the bottom) that is a break almost at the beginning of the slide, I don't see that it is already inactive after 0, 1 sec. This means that the sound will start playing, since the clip begins to 0secs, and objects in the stack under the form button will show, but then slide the breaks. Why did you choose a suspension to 0.1secs point?

  • Problem with dragging the border to resize windows

    It is perhaps a silly question, but it drives me crazy.

    When I resize a window by dragging the border, it adjusts the only border, and on the release of the mouse, it adjusts the content inside the window.

    All my colleagues are able to see the change of content as they resize it the border of a window without letting go of the mouse.

    It became a bit heavy for me because I'm a web developer and I need to see how things change dynamically inside a web browser.

    Help, please.

    In your Start menu, if you search for 'Visual effects', he'll find the control for him.  Click on the result of research called "change the appearance and performance of windows."

    In the next box that opens, select the option "Show window content while dragging" and it should be fixed up.

  • Why am I able to drag the object with no padding over the inside of the shape?

    I downloaded a model for a jacket and used the illustrator file. The hyperlink for download is here:

    https://DL.dropboxusercontent.com/u/1177612/Glossyicon.com/Hoodie_template.rar

    The object on the left side won't let me enter it inside after I get out of the filling. But the object on the left can still after that I go out its filling. I don't know what is happening here. Any ideas guys? Thank you.

    yuske,

    Is there a clipping mask or something? It is selectable, no matter it's invisible.

  • Problem with deleting the object embedded in the ASA 5580 8.4 code groups (4) 1

    Model: Cisco ASA5580-40

    Code version: 8.4 (4) 1

    Version 6.4 Device Manager (9)

    I've been running this code since June of 2012 and so far all seems to work fine until recently, when I started a project to clean up some groups of embeded objects I start running in this weird error. Our company has been going through somre restructuring process and simplified the VPN groups, so I was asked to clean up all the old VPN groups (who are be created in ACL objects and integrated within other ACL object groups). This problem seems to be the case on a random basis, so I don't know if it's a bug problem.

    To illustrate, for example I'm trying to remove the built-in Office infrastructure VPN address space

    the hosts_able_to_ssh_to_server123 object-group network

    object Group limited-i_remote_vpn_address_space

    purpose of group office_infrastructure_remote_vpn_address_space

    Normally, I only need to enter the group object for ssh for SERVEUR123 and do a:

    object-group network hosts_able_to_ssh_to_server123 asa5580-001-the (config) #.

    asa5580-001-lax06(config-network-object-group) # no object-group office_infrastructure_remote_vpn_address_space

    BUT I came across this error:

    Remove obj object-group (hosts_able_to_ssh_to_server123) has failed;

    obj does not exist in this group

    Has anyone else encountered this error

    Hello

    Seems it should work perfectly. Especially when we just remove a "object-group" inside another "object-group.

    I went through a few Bug IDs and it was the only one, I could very well on a look that could match your situation. And then it does not really provide any useful information either

    Click on the image to view a larger version of it

    Maybe it's a bug. Does not appear that there are very precise information on this subject on the site either.

    Personally, I'm not even using "object-group" inside another "object-group.

    I tend to do a simple "object-group" containing everything I need.

    Of course the most obvious route would be to try some newer software, but who knows, maybe they could even produce another bug in turn

    -Jouni

  • How to drag the object in a circular path?

    Hello

    I want to drag and drop the movieclip, but its limited path must be circular instead of the rectangle. is it possible by code.

    Thank you...

    This code restrict the movement of the arrow in a circle only (such as a dial). It can be adjusted to set limits in the circle:

    var dial:Sprite;
    var dialRadius = 100;
    var arrow:Sprite;
    var angleConvert:Number = 180 * angle / Math.PI;
    
    init();
    
    function init():void
    {
         dial = new Sprite();
         dial.x = dial.y = 150;
         var g:Graphics = dial.graphics;
         g.lineStyle(1, 0x004000);
         g.drawCircle(0, 0, dialRadius);
         addChild(dial);
    
         arrow = new Sprite();
         arrow.buttonMode = arrow.useHandCursor = true;
         g = arrow.graphics;
         g.beginFill(0x000080);
         g.moveTo(0, -15);
         g.lineTo(7, 6);
         g.lineTo( -7, 6);
         g.endFill();
    
         arrow.y = -dialRadius;
         dial.addChild(arrow);
         arrow.addEventListener(MouseEvent.MOUSE_DOWN, onArrowDown);
    }
    
    function onMove(e:MouseEvent):void
    {
         var angle:Number = Math.atan2(mouseY - dial.y, mouseX - dial.x);
         arrow.x = dialRadius * Math.cos(angle);
         arrow.y = dialRadius * Math.sin(angle);
         arrow.rotation = angleConvert * angle + 90;
    }
    
    function onArrowDown(e:MouseEvent):void
    {
         stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
         stage.addEventListener(MouseEvent.MOUSE_UP, onArrowUp);
    }
    
    function onArrowUp(e:MouseEvent):void
    {
         stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
         stage.removeEventListener(MouseEvent.MOUSE_UP, onArrowUp);
    }
    
  • Drag the object

    "I have' myBtn ' named MovieClip instance. Now, I want to drag. How I drag movie Clip?

    See the code below:

    myBtn.buttonMode = true;

    myBtn.useHandCursor = true;

    myBtn.addEventListener (MouseEvent.MOUSE_DOWN, startMyDrag);

    myBtn.addEventListener (MouseEvent.MOUSE_UP, stopMyDrag);

    function startMyDrag(evnt:MouseEvent)

    {

    myBtn.startDrag ();

    }

    function stopMyDrag(evnt:MouseEvent)

    {

    myBtn.stopDrag ();

    }

  • Click and drag the question (Beginner)

    Hello, so I have a very simple program where I would like the user to be able to drag the object to the statue and place it on a pedestal. I started with the click and drag, but the code did not work when I used it. I tried to use the code snippets of live code, and that no longer works. After a trace in the click function, I found that he has not been called. They are called the same, and the mouse_up function was working properly, then I don't know what the problem is. Any help would be greatly appreciated ~

    Here is the code, the important bits are in bold. I don't get any other error ~.

    package

    {

    import flash.display. *;

    import flash.events. *;

    flash.ui import. *;

    try public class extends flash.display.MovieClip

    {

    var rightIsPressed:Boolean = false;

    public void retry()

    {

    Add listeners to drag

    trace ("it's working");

    make the invisible instructions

    controlText.alpha = 0;

    call event listeners

    nextBtn.addEventListener (MouseEvent.CLICK, seeManga);

    startBtn.addEventListener (MouseEvent.CLICK, beginManga);

    controlText.addEventListener (MouseEvent.MOUSE_OVER, showText);

    controlText.addEventListener (MouseEvent.MOUSE_OUT, hideText);

    walkinganimation.addEventListener (Event.ENTER_FRAME, fl_MoveInDirectionOfKey_3);

    stage.addEventListener (KeyboardEvent.KEY_DOWN, fl_SetKeyPressed_3);

    stage.addEventListener (KeyboardEvent.KEY_UP, fl_UnsetKeyPressed_3);

    statue.addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

    statue.addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

    }

    function fl_ClickToDrag(event:MouseEvent)

    {

    var object = (event.currentTarget);

    object.startDrag ();

    }

    function fl_ReleaseToDrop(event:MouseEvent)

    {

    var object = (event.currentTarget ;)

    object.stopDrag ();

    }

    start the functions

    function showText(event:MouseEvent)

    {

    trace ("mouse in");

    controlText.alpha = 1;

    }

    function hideText(event:MouseEvent)

    {

    trace ("mouse over");

    controlText.alpha = 0;

    }

    function beginManga(event:MouseEvent)

    {

    gotoAndStop (2);

    }

    function seeManga(event:MouseEvent)

    {

    trace ("2nd button");

    nextFrame();

    }

    function fl_MoveInDirectionOfKey_3(event:Event)

    {

    If (rightIsPressed)

    {

    trace ("keyboard pressed');

    walkinganimation.gotoAndStop (2);

    Foreground.x-= 3.5;

    Text1.x-= 2;

    Text2.x-= 2;

    Text3.x-= 2;

    Text4.x-= 2;

    Pedastal.x-= 3.0;

    statue.x = 3.0;

    }

    }

    function fl_SetKeyPressed_3(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    case Keyboard.RIGHT:

    {

    rightIsPressed = true;

    break;

    }

    }

    }

    function fl_UnsetKeyPressed_3(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    case Keyboard.RIGHT:

    {

    rightIsPressed = false;

    walkinganimation.gotoAndStop (1);

    break;

    }

    }

    }

    }

    }

    Initially, you said that you don't get other errors, but you get the error messages at all?

    How you implement this class file in your Flash file?

    You happen to have anything that could block access to the object of the statue?

    To animate the object of the statue in place such that it is not named in frames before the framework where your code is trying to work with her?

  • Cp8 how a drag source object reappear after a correct answer?

    In other words, I would like to re - use a drag of several right answers source.

    At present, the source object can be moved to two targets, and each of them works fine. However, I want the user to be able to use the source slide again once he drags the object to a drop target correct.

    Is this possible?

    Thank you!

    You will need several copies of this drag source in this case.

  • Drag the balance!

    I use startDrag() and stopDrag() to drag a clip, but when I click on & press and hold the mouse to drag the object, the object automatically centers the mouse, so it looks like I got downtown, is there a way to disable this?

    Use: startDrag (false);

  • If I drag and drop an object in a box. When the timeline returns like that, I want the object to remain in the area and restores not where it was originally.

    Hi all, this is my first post here. Very happy to be here.

    I created an interaction by which objects can be dragged and got stuck in a box. Never, I solved the problem when the playhead returned items I looked where I had left. I did it with as2 and never solved the problem which I am sure is easy enough to solve. I remember someone saying something about levels.

    I need to create an interaction where objects are put in a box and they stay there until the interaction ends. Say that the objects are in a room where the user must visit several times in the interaction. There must be a certain number of objects in the room and drag them into a box to get a done message, I want the user to be able to move to another part of my interaction and come back and be able to complete the conclusion and place the objects in the box without reset everything to where they were first encountered user them.

    I have wi

    All advice, tips are greatly appreciated.

    Looks like you need to add programming that 1) stores the x / y locations of the objects since they change 2) uses this information in position to position objects whenever you enter the picture that they are in.

    You should be able to create variables to store the information that is on a layer that extends from the complete timeline so that the data is stored as it is updated and you move along the timeline.  When you move the object update you its position data. Then, in the context where you have objects use you a simple coding to place objects using this position info... something as simple as...

    Object1.x = object1X;

    Object1.y = object1Y;

    If you are still using AS1/2 you would use _x and FLF instead of x and y

  • 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

  • CS6 Illustrator crashes when click-and - drag to move the object.

    Run 16.0.5 on a MBP OSX 10.9.5 the retina. Whenever I try to drag an object to move, Illustrator crashes. I can click on an object/points and move with my keyboard arrow keys, but not with the mouse or trackpad. I have reimagee my machine, with all fees install cs, but the problem persists. All tracks for a solution are appreciated.

    e,

    The problem may be caused by the extension Chrome Pushbullet, see this post by Matt #3 with solution.

    https://forums.Adobe.com/message/6984777#6984777

    or by the Adobe color extension, see this post #2 of byhexxstatic with the solution,

    https://forums.Adobe.com/message/7095368#7095368

    or you could try to reinstall using step three way:

    Uninstall, run the cleanup tool and reinstall.

    http://www.Adobe.com/support/contact/cscleanertool.html

Maybe you are looking for