How can i let a move clip complete his motion tween movement after dragging and dropping it

hi how can i let a move clip complete his motion tween movement after dragging and dropping it
i am using this code and there is a motion tween applies to the movie clip r_mc
r_mc.addEventListener(MouseEvent.MOUSE_DOWN,fun); r_mc.addEventListener(MouseEvent.MOUSE_UP,fun2); function fun(event:MouseEvent):void { stop(); r_mc.startDrag();
function fun2(event:MouseEvent):void {
play(); r_mc.stopDrag();

i have a simple .fla file wich contains MC that has
a motion tween(its moving from the left to the right of the stage)
this motion tween covers the whole time line (  there is only 50 frames in the time line)
i mean in the frame 1 the MC appears in the left of the stage
and in the frame 50 the MC appears in the right of the stage and there is a motion tween between them
every thing till now working well
i want to make that MC dragabble
so when i drag the MC i will use stop()
and when i drop it i will use play()
but the problem is that the mc doesnt move and complete
his motion tween movement when i drop it
for example the MC will be in the middle of the stage in frame 25
in this frame (25) i am draging the MC ,stoping the timeline,dropping the MC and resum playing the timeline again
but the MC freezes in the middle of the stage and doesnt go to the right of the stageo until the flash loops and start from the frame 1 again
here is the example wich i am worikng on
http://www.mediafire.com/?ia47r4owha7sz8v
thank u very much and sorry for my bad English

Similar Messages

  • How can I attach an additional action to the "reset" button in the drag and drop interaction?

    Hello,
    I would like to know how to attach an additional behavior to the "reset" button in my drag and drop exercise.
    Here is the background:
    In my drag and drop exercise, when the user drops the source on a target of his choice, certain elements appear and certain elements disappear
    This means that depending on where he dropped the sources, certain elements will be visible and certain elements invisible when he is finished the activity
    Because the sources are not re-draggable once he drops them, he will have the option to reset the exercise and start again from the beginning using the reset button
    My challenge:
    I would like exercise to return to its original state when the user selects the rest button .  this means:
    the dragged objects return to their orginal starting location (this is what naturally occurs when you hit the reset button)
    any objects that had disappeared during the course of the activity reappear
    objects that were not visible in the beginning , but had appeared during the course of the activity, again become invisible
    So how can I add this action to the reset button?

    Allowing the user to redrag the souce after it has been dropped would work for my particular problem  if I could bind an action to the event redragging, namely making the elements reappear that had disappeared and the elements disappear that had appeared when the user dropped it the first time.

  • How can I stop safari from auto completing url's on my iphone 4 and ipad2?

    How can I stop safari from auto completing url's on my iphone 4 and ipad2?  On both devices I have cleared history, I have gone into settings-safari-and cleared history and cleared cookies & data, tried turning my devices on and off and I also have private browsing turned on. Both devices are operating on iOS 5.  When I type in a url I don't want anything to show and auto complete.  Any suggestions?

    This indicates corrupt files.
    A restore should resolve.

  • I have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    Greetings,
    What happens when you drag it?
    Make sure the drive you are moving the files to has enough available space to receive the file:
    Click on the movie file and go to File >  Get Info and note the "size"
    Check the drive to which you are moving the file to make sure it has enough available space: https://idisk.me.com/madisonfile-Public/web/finder-drive-available-space-and-for mat.html
    Also note the format of the drive you are copying too.  If it is not Mac OS Extended or FAT (not recommended unless you are taking it to a windows computer) then that may be the issue.
    Hope that helps.

  • How to auto close finder window after drag and drop?

    In Tiger, I would file away items on my desktop my dragging them to the hard drive and then digging down to the appropriate folder. The finder window would then close automatically after dropping the file. Is there a setting in Snow Leopard that will enable similar functionality? Whenever I complete a drag and drop now the finder window just stays open, which isn't a huge issue, but I'd still like to change it. Thanks!

    Here is the test code:
         lo_nd_table_data_source = wd_context->get_child_node( name = wd_this->wdctx_table_data_source ).
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = lt_table_data_source ).
          "Read Dummy Table
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = it_table_data_source ).
        CONCATENATE ls_airline_info-carrid ls_airline_info-connid ls_airline_info-fldate INTO ls_table_data_source-row_key.
          ls_table_data_source-parent_row_key = ls_airline_info-carrid.
          ls_table_data_source-is_leaf   = abap_false.
          ls_table_data_source-expanded  = abap_true.
            SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_table_data_source.
         LOOP AT it_table_data_source INTO wa_table_data_source WHERE carrid = ls_airline_info-carrid
                                                                and   connid = ls_airline_info-connid
                                                                and   fldate = ls_airline_info-fldate.
          ls_table_data_source-connid    = ls_airline_info-connid.
          ls_table_data_source-fldate    = ls_airline_info-fldate.
          ls_table_data_source-PRICE     = wa_table_data_source-PRICE.
          ls_table_data_source-CURRENCY  = wa_table_data_source-CURRENCY.
          "Select all data to the new dummy table structure.
          "Move one row of the table to ls_table_data_cource correspondingle.
          APPEND ls_table_data_source TO lt_table_data_source.
          DELETE ADJACENT DUPLICATES FROM lt_table_data_source.
       ENDLOOP.
          lo_nd_table_data_source->invalidate( ). "Clear the table data
          lo_nd_table_data_source->bind_table( lt_table_data_source ). "Refresh new data
    Thanks,
    Kiran

  • Can't see music even after drag and drop

    Since I was having the same problems with MM and MS, I tried the solution I saw several people post on here and have done the following:
    On my BB Pearl 
    options>media card
    media card support: on
    encryption mode: none
    mass storage mode: on
    auto enable mass storage mode when connected: yes
    Connected phone to pc using cable then dragged and dropped music files to E: drive music folder.
    Removed phone from pc but music files are still not showing up.
    Solved!
    Go to Solution.

    when you have your device plugged and you can browser it with Windows Explorer,
    delete all bbthumb.dat files in the Music\ folder.
    then unplug, and open the media application. And wait.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How can I rent a movie from iTunes and watch it on my MacBook w/o being connected to internet?

    Trying to figure ot how to rent movies from iTunes and watch w/o being connected to web. The dude at the apple store said that when I download it I can designate if I want it downloaded to my device (ie: MacBook) or my Cloud...but I don't see that option being given. Any help? Traveling Tues and I'd like to get a few movies set for my trip.

    Just sync your iPad.

  • I can not move or drag and drop my albums anymore.

    For some reason, iPhoto will not let me manually rearrainge anymore.  When I try to drag an album, it only gives me the option to start a new folder.  Anyone else notice this in 11?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • How can I sync up my clip in Premiere Pro with the After Effects Comp I replace it with? How do I link them?

    I am having some issues seeing a tracked mask work correctly in Premiere Pro. I clicked on my clip in my Premiere pro project and hit "replace with after effects comp". After correctly masking out everything in AE and tracking it to perfection, I clicked save and went back to my Premiere project. However when I view the new "linked" clip in my project it has dropped frames. The mask seems to track correctly but the dropped frames are an issue. Does anyone know how I could fix this?
    Thanks,
    Ajnies

    When I return to the linked clip in my Premiere project, it does not contain every single frame of the original after it has been replaced by the AE comp. It skips about every other frame. I am doing a stop motion animation so this is highly noticeable.

  • How can i retrieve a movie i bought and wont show up

    i bought the twilight saga breaking dawn pt.2 in Novermber 2012 and i cannot seem to find it on my purchase history or anything.

    If for some reason you have failed to maintain a backup, not good, then you can redownload some itunes purchases in some countries.
    Download previous purchases from the iTunes Store - Support - Apple

  • Large size of video clip after drag and drop

    I'm putting together an iMovie. I'm dragging very small clips from one pane (on one hard drive) to another pane (on another hard drive). The move is successful, but the size of the moved clip is just too large.
    For example, I'll have a 20 second clip that I drag -- let's say it's called clip06.dv and it will take up 4 or 5 GB of space on the HD. Needless to say ,I'll never get anything done this way. Any suggestions?
    Thanks
    Alan
    Busily working on the son's bar mitzvah video

    Here is the trick I have found to reduce the size. After having cut and reordered your clips as wanted, with all transitions and titles, but without sound, export them to iDVD.
    In iDVD, choose a basic theme without animated title and save an image of the film on your hard disc. This creates a .img file which size is less than 10 times smaller than the original iMovie file. Double click this file: you will find two folders. Open the VIDEO_TS folder and look for files VTS0101.VOB, VTS0102.VOB, etc.
    Go back to iMovie, open a new movie and drag the .VOB files in it. Et voila ! The operation takes a quite long time, but you will obtain a few clips with the minimum possible size. You can then throw away the original oversized iMovie file and also the .img file.
    Note that QuickTime and iMovie needs the MPEG-2 Playback module (19.99$ at Apple Store) to read the .VOB files.
    Hope this help.

  • Can't resequence photos in i Photo 11 smart album.. tried drag and drop.. also if I share a smart album to Facebook will it appear as manually sequenced or by date?

    I have created a smart album with a date range and 'photo is flagged' and I would like to sequence them manually. The doucmentation I can find says you can open a smart alblum and drag/drop... not me. Can you help?
    Also.. if I figure this out and Share the smart album with Facebook, in what sequence will they appear in Facebook?
    Thanks!

    You can't sort photos manually in a Smart Album. How Facebook will display the pics is one for Facebook support.
    Regards
    TD

  • Move equipment: drag and drop to new location

    Hello,
    We are using CC04 to move/ copy equipment to a new location. When we copy a equipment and put to a new location it does not include the sub equipment.
    Is there a quick and easier was to move or copy equipment to new locations and include everything to go with it: (BOM, Configuration, address, partners, document..etc.). In addition is there a way to copy functional location with all the equipment/subequipment and copy/move to new location.
    Thanks.

    Refer this link
    Link: [Product Structure|http://help.sap.com/saphelp_erp60/helpdata/EN/c0/f0da539ca111d194a000a0c92f024a/frameset.htm]
    Thanks
    S.N

  • 90% of pictures disappeared after new program. Time machine folders mostly empty. Downloaded my Carbonite file. Can I restore directly from this file or do I have to drag and drop 20,000 pix?

    90% of pictures disappeared after adding Maverick. My Time Machine folders were in the right order but mostly empty so useless for restore. Repair and rebuild attempts were not effective. Downloaded my Carbonite file which is now sitting on my desktop. Is there any way to use the restore command to rebuild my portfolio or do I have to drag & drop approx 20,000 pictures? Can album groupings and faces be retained?

    Do you still have the original library that was present at the time you upgraded to Mavericks?  If so apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    Happy Holidays

  • Why can't I add photos to my photo book? Will not drag and drop?

    Also my Iphoto 11, despite stating it is the latest version, does not look like the versions shown on the Apple website (Very basic grey sidebar).

    Post a screenshot of what you're seeing. 
    OT

Maybe you are looking for