Question of dragging parts

I have a dynamic clip that I am building with a loop for. The loop determines the width of the element. After the loop, I want to be able to drag the clip horizontally only. However when I click on the object it immediately moves to the left corner of my mouse x position. How can I keep the pos x of my clip where he is, first of all. Prevent the 'leap' to my mouse. How can I set limits for drag?

Here's what I have:

calendar_clip is a movieclip that contains the drag_clip, which determines the width of the calendar_clip. Below the drag_clip are text fields. That's why I'm grabbing the parent of drag_clip (calendar_clip) on startDrag and tries to drag horizontally.

loop for...

drag_clip.addEventListener (MouseEvent.MOUSE_DOWN, startCalendarDrag);
drag_clip.addEventListener (MouseEvent.MOUSE_UP, stopCalendarDrag);
drag_clip.buttonMode = true;

function startCalendarDrag(event:MouseEvent):void {}
trace ("here at the beginning");
event.target.parent.startDrag ([true, 0, 0, 100, 100]);
}

function stopCalendarDrag(event:MouseEvent):void {}
trace ("here at the stop");
event.target.parent.stopDrag ();
}

Thank you!

startDrag does not have a table as parameter. If you help, the [] means optional parameters... So, you want to just:

event.target.parent.startDrag (true, new Rectangle (0, 100, 0, 100));

And you probably want to use false, not true to prevent jump... and if you want a horizontal movement of your rect needs width to something other than 0...

event.target.parent.startDrag (false, new Rectangle (0, 100, 100, 0));

Tags: Adobe Animate

Similar Questions

  • Choice questions multiple question IS NOT part of the quiz?

    Hello, all.

    Another newbie question.

    I have a few multiple choice questions and some short answers that I want to work as an interaction, rather than be part of the project questionnaire. (I have a quiz 10 questions T/F, which is classified and a score of 80% is required.)

    So in other words, on the multiple choice answers and short, I don't have to reported responses - and more importantly, if a person fails the T/F test and resume, I don't want that they have ALSO take multiple choice and short answers.

    Is it possible to do this?

    I guess the short answer questions can only be implemented with text entry areas, Yes?

    But what about multiple choice questions? Any way to get them, but exclude to the quiz itself?

    Hope this is clear. Thanks for any help you can give!

    Keith

    I never use the default short answer question, not even when I want to be marked. Take a look at: Custom short answer Question - Captivate blog

    Use the radio buttons or checkboxes interactions, you can create a custom QUIZ question.

    You can also use the default QUIZ question, but indicate that the score should not be added to the total score. ATTENTION: some system quiz variables as the number of questions (used in the progress indicator) will always be count these questions. And will go to the first question, only added to the score or not. There is a solution for that as well.

  • If a Question is in part correct?

    Say I have a fill-in-The-Blank question with three spaces empty/words and the learner has one or two of the three spaces/words correct.

    Is it posible to dsplay a message 'That is nearly right.'?

    Not with the slides in question by default FIB, sorry. It is possible with slides of question FIB personalized because you have total control in this case.

    This is an old article but there a matter of FIB custom as a demo: Widgets and custom - Questions Part 2 - Captivate blog

    Same can also be done with TEB, which have the advantage of being able to have a fixed immediately score.

  • Simple questions about drag liberation movements.

    Hello

    I looked for some time, but I wasn't able to understand everything that I need.

    In short, I want to have a simple Drag and Drop.
    I don't want to move the data, I just want to have a node (source) to interact with another node (target). Each funky stuff like change the color or change mouse cursors when I go on potential targets are not important for now.
    I want just a beginning 'drag', a 'drop' and a 'dragdone '.
    Rendering, it is the start of the trail and the part of the drop.

    I used the setOnDragDetected function, which works very well and decided to startFullDrag() from the API seems to me, that is the right way.
    this.setOnDragDetected(new EventHandler<MouseEvent>()
            {
                @Override
                public void handle(MouseEvent p_Event)
                {
                    System.out.println("DragDetect");
                    startFullDrag(); 
                    p_Event.consume();
    As it seems to activate or maybe switch the DragEvents to MouseDragEvents - I used setOnMouseDragReleased to activate a reaction on a 'drop' (or a 'drag version') with success.
    this.setOnMouseDragReleased(new EventHandler<MouseDragEvent>()
            {
                @Override
                public void handle(MouseDragEvent p_MDEvent)
                {
                    System.out.println("DragRelease");
                    p_MDEvent.consume();
                    
                }
            });
    But I want to change something about the source, although I have the drag (grayish color, perhaps) and he had to find, when the brake is completed.
    For the DataDrags, it is possible with "OnDragDone" which seems to be enabled for the source. Exactly what I want, as it seems.
    It does not somehow for my knots.

    They Interact with nodes form the same base class, so that each would catch any event, which would be activated, but no node has given me an exit. I tried each recipient event that seemed remotely appropriate.
    I don't want some Drag Queens 'half-alive' or anything like that. I'd really like to be able to react at the end of a drag.

    I would be really grateful if you can help me with this problem.

    TL; Dr:
    Drag-and - release from one node to another works, but I can't get an event that informs the node that the drag is finished. So I may not remove changes to the interface, I did to make the clear source as the "source".

    Published by: Anro on 12.11.2012 04:43

    This tutorial covers what you need: http://docs.oracle.com/javafx/2/drag_drop/jfxpub-drag_drop.htm

    For your "done drag" was not based on the source, I think that you must invoke
    setDropCompleted (true)
    on the event drag to make this happen.

    If you want something like

    target.setOnDragDropped(new EventHandler() {
      public void handle(DragEvent event) {
        // process end of drag on target
        ...
        // Now inform the drag event that everything's complete:
        event.setDropCompleted(true);
      }
    };
    
    source.setOnDragDone(...);
    
  • Other questions about drag-and - drop and depth

    Okay, team

    so I know my drag and drop code is probably 'stick' on the mouse event because there is something in front of the object...

    I'm trying to implement the numChildren code in order to bring the object moved forward...

    SO I add this code inside each movable answer...

    addEventListener (MouseEvent.MOUSE_DOWN, changedepth);

    function changedepth(event:MouseEvent):void {}

    this.parent.setchildIndex (this, this.parent.numChildren - 1).

    }

    OK so that part is ok, but my project is quite complex, so now when it goes on the next section or there are children who are have not themselves resets...

    So now I want to put something like that

    addEventListener (MouseEvent.MOUSE_UP, removechild);

    function removechild (event. MouseEvent) {}

    this.parent.removeChild(-1);

    }

    but of course this does not... any ideas?

    Cheers for your help

    Void

    You must assign the MOUSE_UP listener on the stage to make him independent object.  If you need to know which object has been moved then store a reference to it in a variable.

    In addition, the removeChild() method argument should be a DisplayObject, not a number

  • A question of both parties about Flash player and Firefox plugin.

    Things have gotten worse. I'm unable to reset Firefox because at the time when I go to tools > (etc.) reset Firefox, it crashes.

    None of the Flash help I received from Adobe and Mozilla is useful.

    Finally, I uninstalled Firefox completely and on a whim, thought I'd install Seamonkey. She runs... But will not play ANY Flash. The plug in case of accident, as soon as I try to access any Flash website.

    I use Chrome without difficulty. I can use IE without difficulty. So, guess what? Firefox is out until someone can fix the problem. I am convinced that Firefox can't handle any software if Macromedia, Adobe, Shockwave Flash or any other part of it. This is totally unacceptable.

    The way I see it, I need to go back to an older version of Firefox AND Flash player. Once I can do I think they work together because none of this happened until the most recent version has been installed.

    Where can I find all the old versions of Firefox? And I will have difficulties in their installation.

    Like I said before, I'm a long-time Firefox fan. It comes, he tries my patience just to make it work again when you people do an upgrade. The problem involves ALWAYS Flash form any.

    With great anxt and sadness,

    andythebeagle


  • Question list R32 parts

    All the spare parts for Thinkpad R32 called from the spare parts list - India is not found.

    Hi Mornsgrans,

    Very highly rated. At the same time, I'm looking for an update of the support team on the other driver links you have posted in other threads.

    Thank you dude!

    -Cleo

  • When I play any CD, drag parts of every song. Any ideas?

    Whenever I play a CD it drags. I have Windows Media player installed and I just download RealPlayer.

    Hi MCLBB,

    1 when was the last time it was working fine?

    2. did you of recent changes on the computer?

    3. you receive an error message during playback of the CD in Windows media player?

    4. it happens with all types of CD?

    5 are you having similar problem during playback of the CD even use real player?

    If it helps, try the step below and check out them.

    (a) open Sound by clicking on the Start button and then clicking on Control Panel, click sound.

    (b) on the playback tab, click speakers, and then click Properties.

    (c) click the enhancements tab, and then select the checkbox disable all improvements .

    Using Windows Media Player 11 for Windows XP

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Windows-Media-Player/11

  • Purchase Multiple-Question of spare parts

    Hello

    I'll buy two PS6100E and a PS6100XS without.  The best support service that Dell can offer is next day for parts due to the location of the site.  Normally, we prefer to support parts of four hours, but it is not available for this location.

    Is it possible to buy extra hard/SSD drives, flash for controllers and a controller card quickly resolve the bad parts?  Or y at - it another way to solve the problems of bad part as soon as the next business day?

    Thank you.

    Due to some limitations location 4 hours is not available (typically a Dell parts depot is not around).

    However, you should be able to buy additional disks, controllers, as required by your needs flash drives.

    Start by contacting the EqualLogic Customer Service (or your sales representative) to see what is available.  EQL customer service can be reached at this e-mail [email protected]

    -joe

  • Dragging parts problem title

    Hello!

    I have a problem with the addition of title to the timeline. I can drag everything outside securities (png ps too). I create the title via the new point - title. Then I do the titles and so forth and it's in my project. But I don't know why I can't just drag and drop it on the timeline. When I try I see is a close the hand with a line through it. It was fine yesterday and I must click on something and I don't know what Thanks much for any reply.

    UPDATE: I opened Premiere Pro holding the SHIFT and ALT keys and it worked. So I guess, it just cleaned all preferences, but now I'm able to drop and drag things! I'm 100% I must have clicked something and it has been saved in my preferences, but I couldn't find it at all. So it helped me!   Navdeep Pandey thanks for your reply again!

  • Back and front master page of questions when drag/reorganization of pages - photo, CS6

    I have a novel/book exceeds everything that a document (as opposed to ID book) and I used the existing templates and styles of a previous book.

    When a chapter ends on a page (on the back) left side of the spread, I want to start the opener next chapter on the right side (front) very next propagation.  When a chapter ends on a straight line (front), then I want the opener of the next chapter to start on the next spead on the side left (back).  I mainly use a page of mater (2 pages) for the first chapter game and a master spread 2 separate page for content pages.  I'm trying to achieve a layout of book/novel with none of the white pages.

    I tried to create master pages 1 page and application to "undo" spreads, but that seems not worked either.  I 'allow pages from one document to shuffle' unchecked.

    On the attached page, I tried to delete the blank page (master set to 'none'), but when I do, it just creates another page in its place.  When I try to drag and drop the opener of the next chapter to the right of the last chapter ending, it adds a blank page in front of it or removes one of the content pages.  The "son" of text are perhaps the cause of issues?  Any ideas?  Really hope there is a solution that does not start.

    I would be grateful for the advice!

    Thank you

    Kai

    indesign.jpg

    Of course, simply change the document face to the non-connected format to, and all pages will use half left of the master spread.

    He may be little cleaning if you have asymmetrical margins or prevail on all main objects.

  • Questions of DST, part two

    Oracle 11.20.1.0 SE - One
    Oracle Linux 5.6 x 86-64

    Cut to the Chase. Most of our tasks in the Scheduler is set so that start_date, last_start_date, and next_run_date all specify them the zone with a fixed offset. As a result, the first execution after the time change DST, they ran an hour initially, but then calculation for the next execution corrected and they found running at the scheduled time.

    Finally, almost.

    We have two application schemas that have Task Scheduler.

    Jobs in a schema is featured as above.

    But all the work of the other schema to continue to run an hour earlier.

    the above can be seen in the result of this query:
    select
         instance_name
    ,     systimestamp
    from
         v$instance;
    --
    select 
         owner
    ,     job_name
    ,     log_date
    ,     status
    from
         dba_scheduler_job_log
    here   log_date > sysdate - 10
      and   owner not in ('EXFSYS',
                          'ORACLE_OCM',
                          'PERFSTAT',
                          'SYS'
                          )
    order by
         owner
    ,     job_name
    ,     log_date
    ;
    Very easy to simply go to the bottom of the column LOG_DATE and see time to change.

    For my first two questions is - can someone explain the behavior above, in particular the inconsistency in a single schema 'cure' jobs themselves after the first run after the time change, but another schema employment continuing to run an hour earlier.

    I don't know if she's wearing on her or not, but most of the jobs (two patterns) is provided with a local function to "frequency" that uses a decimal representation of the time (ie: WEEKLY(.4583,'SATURDAY'))


    And a second question - what are the things that affect the representation of time zone in the start_date when defining a new job? Our programmer creates / manages jobs using SQL Navigator, and there is no provision in the GUI it to specify a specific time zone or (offset vs name) method to represent a time zone. I read that there are some influences on the client side, but have not restored that right away.

    Try

    SELECT CAST (SYSDATE AS TIMESTAMP WITH TIME ZONE) FROM dual;
    

    you will see the time zone.

    Or a more detailed example

    ALTER SESSION SET TIME_ZONE='Europe/Prague';
    SELECT dbms_scheduler.stime, sysdate, systimestamp, current_timestamp,CAST (SYSDATE AS TIMESTAMP WITH TIME ZONE), CAST (to_date('1.1.2012','dd.mm.yyyy') AS TIMESTAMP WITH TIME ZONE) FROM dual;
    
    ALTER SESSION SET time_zone='Asia/Bangkok';
    SELECT dbms_scheduler.stime, sysdate, systimestamp, current_timestamp,CAST (SYSDATE AS TIMESTAMP WITH TIME ZONE), CAST (to_date('1.1.2012','dd.mm.yyyy') AS TIMESTAMP WITH TIME ZONE) FROM dual;
    
    ALTER SESSION SET time_zone='-6:00';
    SELECT dbms_scheduler.stime, sysdate, systimestamp, current_timestamp,CAST (SYSDATE AS TIMESTAMP WITH TIME ZONE), CAST (to_date('1.1.2012','dd.mm.yyyy') AS TIMESTAMP WITH TIME ZONE) FROM dual;
    

    You can see that DATE to TIMESTAMP WITH TIME ZONE conversion session TIME_ZONE.

  • Question about Drag and Drop using DataGrid controls

    I use two DataGrids, each has a different type of object so that you can imagine when you drag - move into the other it causes an error in the cause the objects are not the same.
    I already managed to do this work, on the dragDrop event, I stop the default behavior of the event by the preventDefault () method, this way I can convert manually one object in another and then add it to the target of DataGrid.
    The problem is that because I stopped the default behavior of the event that remains the target DataGrid highlighted all the time (focus is on that point), so I have to do after my manual conversion object is to restore the DataGrid control to its normal state, which is what would have made the event's default behavior.

    So any ideas how to do that? restore the DataGrid control in its normal state? or perhaps restore an event so that it can continue its default behavior?

    OK I have found, after calling the preventDefault method and make my own logic, you call the method of the DataGrid hideDropFeedback () and that will do the job

  • Question about a part received with Qosmio G40-127

    Link: [http://peecee.dk/upload/view/112184]

    It is in the box for my newly purchased G40 - 127.
    I have no idea of what he does and I'm getting more and more curious.

    Help?

    Post edited by: kongbuur

    Did you look in the user manual?

  • 2 questions for 1 part of my application

    Hello
    I have a report and document in my APEX application and now the form add entries in the report, which includes data in 1 row, if the name is the same. (terrible explanation but if you take a look at my app then maybe you will see what I mean)...
    When the user clicks the add report button, the tags edition box, but I want only the button Add (create) to affix this region (do not remove) and the Cancel button. I also have a button Delete, and I want to display also the same region, but this time only with buttons remove and cancel.

    What I want to do when the addition is not to be able to enter duplicate information, so when you use the Add function, I want the Popup LOV to select only the data that the person is not already in the database.
    I want to do when deleting is not to be able to see all the data that the person is not in the database?

    So if Bob knows Java and C++, when you delete a skill from him, I just want to select Java or C++.
    If you try to add a skill to Bob, I don't want Java and C++ to show on the popup LOV.

    Sounds simple, but I'm stuck on these queries...

    Currently, I have a pretty default query for the popup LOV
    select TAG_NAME as display_value, ID as return_value 
      from TAG_LOOKUP
     order by 1
    I know I need to change a bit, but every time I do it does not help.

    I have a workspace that you can see what I mean. It is on page 4. Tags panel used.

    Workspace: Guestspace
    Login: Guest
    Password: kedupap1

    I'm trying to learn but keep finding myself stuck.
    Let me know what you think, or if you have any tips!

    Thank you
    Jeremy

    Published by: Jeremy H July 2, 2012 12:57

    $s is an Apex api javascript that sets the value for the given element. (http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#CHDFBJGD)

    The rest of the line was just a few jquery code upward through the DOM to enhance the employee ID. There is probably a more eloquent way to achieve this. Your dynamic action is click on the button, but the button is a link to call the setvals function. The setvals was setting the values after the dynamic action of fire. I needed to set the value of P9994_EMPLOYEE_ID on the page and then save it to the session state for the query in the popup LOV might use the value.

    I took another glance and noticed that I could call the setvals function in the click of a button and so eliminate the first action extraction and development of the element. I changed the functionality of the button Delete and dynamic action to demonstrate.

    
    

    When executing the query popup LOV is focus on the value of the session state (not the values of item currently on the page) so we added a real action to dynamic action to load the current page value in session state:

    apex_util.set_session_state('P9994_ACTION', 'ADD');
    

    Also note that P9994_EMPLOYEE_ID is in the field "Items to submit Page" of this action that effectively support the value of P9444_EMPLOYEE_ID in the session of the State and available for the popup LOV query.

    I added the dashboard more action as a kind of debugging for you ensure that I saw the correct value of P9994_ACTION session state. It can be and has been deleted.

    I missed something?

Maybe you are looking for

  • Computer restarts constantly

    Hello Just bought a HP dc7900 Desktop & 22 inch monitor packageModel: NA190PA + GX007AA It was working properly for a few weeks until last night when he came up with the following error message The system has recovered from a serious error Error sign

  • How can I make the FN keys work with your laptop more old?

    Hello I have laptop Satellite 5200-902. Unfortunately there is no support for such portable one 'old' as this on Windows Vista. Vista runs very well on it but the only thing I didn t do is to operate buttons FN in Vista. Can someone please give me an

  • Under W7 network printer cannot be found

    I have a Toshiba laptop Satellite 500 and I can not install my printer (Canon ip5200). It works with Windows 7. With another laptop, running with Windows XP, it works fine. W7 cannot find a driver on the network Can someone help me? Robert

  • Combination of call forwarding and online number?

    Hi people! I was wondering if it was possible to use these two functions at the same time to allow someone to call my online number and have the call transferred to my local phone (ex: my girlfriend in the United States I in Spain). Thank you very mu

  • I have a problem with my Sims 3 game on my studio15 dell.

    OK, my mother made me a studio 15 Dell for my birthday in September. and I bought the sims 3 in June. and I wanted to wait to play on my studio 15 Dell. So, I had my laptop and now sims 3 dosen't work with my laptop. I went on www.canyourunit.com to