How to add a code so my drag and drop movie clip will not stick  once it is dragged to final place o

Hello all and kglad, I have to use the old drag and drop code on my movie clips, but the problem is when I drag the movieclip to the area on my .swf file once i release it, it sticks to the hand mover.
I am encloseing the action script I am using could someone or kglad tell me what is missing from the code so that once it is released it will not stick, see code below
circle.onPress = function(){
startDrag(this);
circle.onRelease = function(){
stopDrag();
I am desparate for help on this must get project ready for this afternoon
Seal55

there's nothing wrong with that code but it would be better to use:
circle.onPress = function(){
this.startDrag();
circle.onRelease = function(){
this.stopDrag();
but that won't solve your problem.  there must be something else going on like a depth issue.  you may need to use swapDepths() to bring your circle under the mouse when releasing.

Similar Messages

  • How do I merge events on the new IPhoto. The old one was simply drag and drop, this one will not.

    How do I merge events on the new IPhoto. The old one was simply drag and drop, this one will not.

    There are no longer events in Photos.  The new Photos for Mac is structuring the Photos Library automatically into Moments based on dates and locations. You cannot change the moments.
    When Photos migrates an iPhoto Library, it will create album for each event in the iPhoto Library, as a substitute, but these album based "events" are a fake, because albums behave differently from events.
    In iPhoto each photo could be only in one event, so you could move photos from one event to another. With albums, dragging a photo from an album to another album will simply add the photo to the other album as well.
    You will have to remove the photo from the original album.

  • Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.

    Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.

    Have you attempted a restore?

  • Drag and Drop Movie Clips onto Plugin

    Hi All,
    We've built a plugin for Adobe Flash CS5.5, with a tree control in the plugin.
    We wish to be able to drag and drop movie clips from the canvas onto the plugin. Wondering if anyone could point me in the right direction?
    regards,
    -amit

    Hi,
    If you are developing the plugin in Flash, have you tried to listen to NativeDragEvent.NATIVE_DRAG_ENTER and NativeDragEvent.NATIVE_DRAG_DROP ?
    Once the plugin behaves like an AIR Application, you should have access to its API.
    I hope it helps !

  • How can I make a drag and drop movie clip to disappear when it's dragged in a specific area?

      I have a movie clip that also has the function to duplicate. What I want is that if the user dosent want so many duplicates, to have an area where if he drags the duplicates, they will disappear.  Thank you.

    I've search on google but I did not found any tutorial for this particular thing. I found instead this code : 
    on (press) {     startDrag ("", false);   
    this.swapDepths(_global.depth++);
    on (release, releaseOutside)
    stopDrag ();   
    this.swapDepths(_global.depth++);   
    if (this._x > 493.250000 && this._x < 636.050000 && this._y > 142.900000 && this._y < 271.350000)   
       this.removeMovieClip();   
        } // end if
    but I don't know how to make the _x/_y to work, better said I changed  the values but nothing happend, did I did something wrong ? The first _x/_y stands for the position? I've played with the range values but cant seem to make it happend.

  • How to add a code TestIfElse(10) to the Main method of the Program.cs class?

    How to add a code  TestIfElse(10) to the Main method of the Program.cs class?
    Here is my code and I have copied from the Wiley book for Microsoft certification page 14,
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace ifelse_Statement
        class Program
            static void Main(string[] args);
            TestIfElse(10);
            public static void TestIfElse(int n);
            if(n < 10)
                     Console.WriteLine("n is less than 10");
             else if(n < 20)
                    Console.WriteLine("n is less than 20");
             else if(n < 30)
                Console. WriteLine("n is greater than or equal to 30");
    Here is the error list I am getting,
    Error 1      Method must have a return type        C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\switch_Statement\Program.cs
    12 13
    switch_Statement
    Error 2
    Type expected C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\switch_Statement\Program.cs
    12 24
    switch_Statement
    Error 3
    Method must have a return type C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    12 9
    ifelse_Statement
    Error 4
    Type expected C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    12 20
    ifelse_Statement
    Error 5
    Invalid token 'if' in class, struct, or interface member declaration
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    16 9
    ifelse_Statement
    Error 6
    Invalid token '10' in class, struct, or interface member declaration
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    16 16
    ifelse_Statement
    Error 7
    Type expected C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    16 16
    ifelse_Statement
    Error 8
    Invalid token '(' in class, struct, or interface member declaration
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    18 35
    ifelse_Statement
    Error 9
    A namespace cannot directly contain members such as fields or methods
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    20 10
    ifelse_Statement
    Error 10
    Type or namespace definition, or end-of-file expected
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    30 1
    ifelse_Statement
    Error 11
    The type or namespace name 'n' could not be found (are you missing a using directive or an assembly reference?)
    c:\users\pvs\documents\visual studio 2013\projects\lesson01\ifelse_statement\program.cs
    16 12
    ifelse_Statement
    Error 12
    'System.Console.WriteLine(string, params object[])' is a 'method' but is used like a 'type'
    c:\users\pvs\documents\visual studio 2013\projects\lesson01\ifelse_statement\program.cs
    18 26
    ifelse_Statement

    static void Main(string[] args){
    TestIfElse(10);
    public static void TestIfElse(int n)
    if (n < 10)
    Console.WriteLine("n is less than 10");
    else if (n < 20)
    Console.WriteLine("n is less than 20");
    else if (n < 30)
    Console.WriteLine("n is greater than or equal to 30");
    Fouad Roumieh

  • Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.

    Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.

    Thanks. I've tried this and apparently the template I'm using is one of those where it doesn't work. I've tried dragging it as well as cutting a pasting but it always travels back to the end of the book. Maybe I can try changing the template temporarily, move the preface page, and then convert back to the original template. I'll experiment a little.

  • How to make comnapy code defalut got 100 and 1001 in the PNP screen

    Hi Expart ,
    can u tell me my que how to make comnapy code defalut got 100 and 1001 in the PNP screen in HR reporting?
    Regards
    Razz

    Use the below code in the   INITIALIZATION   
                     INITIALIZATION                                      *
    initialization .
    " Make Default values for Company Code 2100 & 2200
      PNPBUKRS-LOW  = '2100'.
      PNPBUKRS-HIGH = '2200'.
      append PNPBUKRS.
    regards
    .....lakhan

  • How to add additional disks on vmware OEL4 and use it for Oracle 10gR2?

    I created a virtual machine on vmware workstation 6 and installed OEL4.
    during first install I created 20 GB disk but now I want to add more disks.
    from vmware documentation I tried to add more 8 gb disk to the virtual host.
    under devices I see two lines;
    Hard Disk (SCSI 0:0) 20.0 GB
    Hard Disk (SCSI 0:2) 8.0 GB
    but I must be missing some step since I can not see 20 + 8 gb at df;
    [root@antuhost ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              13G  9.7G  2.3G  82% /
    none                  506M     0  506M   0% /dev/shm
    /dev/sda2             4.9G  851M  3.8G  19% /homeThank you.

    Oh the check the answer from Re: How to add additional disks on vmware OEL4 and use it for Oracle 10gR2?

  • Do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?

    do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?

    do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?

  • I am trying to burn some cds from my playlist on itunes, but my playlist shows many of my songs in light print and says that it will not burn because it is not a file, these are all songs I have purchased quite a while ago, how do i get them to files?

    I am trying to burn some cds from my playlist on itunes, but my playlist shows many of my songs in light print and says that it will not burn because it is not a file, these are all songs I have purchased quite a while ago, how do i get them to files?

    If they were songs you purchased from itunes, try redownloading them from your purchases...
    if that doednt work, make sure the optuon to copy files to itunes media folder is checked in settings, then find and download from the net. and re-add them to your library

  • How do you get your library off your old computer if it will not turn on?

    how do you get your library off your old computer if it will not turn on?

    You can extract the drive; put it into an external enclosure to mount it to another computer by USB or FireWire (if available) to acess the files. Copy and paste (Windows-style) or drag and drop (Mac-style) to another destination-- another external HDD or another computer.

  • How to solve Audition CS6 error "The amount of audio to burn will not fit on the CD........."?

    I have a brand new PC that is MORE than adequate. I have once succeeded in burning a CD after learning all about time tracks and merging them. (made a few with only ONE track)
    Two things:
    1) I find that I must add a CD marker at the end of the WAV because Audition CS6 erases whatever is the last CD marker I've made. Very frustrating but now I know I have to do this but I have no idea WHY!!
    2) Right now I have a WAV that is just over 1 hour and 3 minutes with a total of 637.74MB of info. When I try to export/burn a CD, I get an error message stating "The amount of audio to burn will not fit.......".  I am using TDK 700MB blanks with a Pioneer Blu-ray burner.
    Obviously it will fit.
    What am I doing wrong, all of a sudden?

    Hey ryclark,
    Thanks for responding. Something else is going on here.....
    Here's what I re-replied to our friend...
    Thanks for the response.
    When I built this computer last Nov/Dec, it was built with the second 
    fastest Intel 7i, quad-core chipset on an 64-bit ASUS motherboard. It's  running
    Win 7 Pro. It has a 500GB SSD "C" drive with another 14 TB of true hard 
    drive space. It is set up with 64 bit. I had been using Audition CS3 for  many
    years and even go back to it's origin: Cool Edit and Cool Edit Pro. My 
    learning curve was minimal, sans the CD burning, which I used other software
    for  which is now antiquated, so I need Audition for this. Between this and 
    IZotope 3 I've repaired and improved many a recording. All-in-all extremely 
    useful software.
    As for the idea "to burn it anyway", well the error message comes up and 
    that's it - if I "X" out of that message and try to burn again the message
    comes  back  - so Audition will not let me. It is convinced that this file is 
    longer than it really is, but only when I add track  marks to it!
    There are only 11 tracks.
    I was able to burn a CD of this same file but without all the track marks, 
    so the same exact file length/size will burn, only as the one track.
    I've also succeeded in burning other WAV's , both greater and smaller, with
    and without multiple track marks, without issue. Of course all with less 
    than the CD's max. capacity.
    This problem seems to be with this one file. I've even  re-made/re-recorded
    the file from scratch with no change. There's something else  going on here
    that I can't put my finger on. (I am "recording" LP's and making  personal
    CDs of them)
    Also, only from time to time, I have another error after burning a CD that 
    states it could not verify the CD. For this I assume it is the blank rather
    than AA? The first might burn without issue and with the second burn I 
    get the error. It is near the end of a stack of blanks, so.....
    As for the need to "mark the end" of the file makes a lot of sense but of 
    all the other CD track-marking software I've used, none needed one to do
    this,  but this IS Adobe after all.
    You'd think there might be a smidge of intuitiveness with Adobe, but maybe 
    not.
    - Mark
    In a message dated 8/2/2014 8:11:52 A.M. Eastern Daylight Time, 
    [email protected] writes:
    How  to solve Audition CS6 error "The amount of audio to burn will not fit
    on  the CD........."?
    created by ryclark (https://forums.adobe.com/people/ryclark)  in 
    Audition CS5.5, CS6 & CC - View the full  discussion
    (https://forums.adobe.com/message/6605916#6605916)

  • How can I make sure an url to connect to a webinar will not work in another browser?

    How can I make sure an url to connect to a webinar will not work in another browser? The url is using a session cookie instead of username/password to authenticate the user and has the following form: /r5ygd62w5za/?session=breezrek22zu756wgzy8r&launcher=false&refresh_parent=true

    Try the [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint] add-on, it gives greater control over the zoom options.

  • My iphone 5 is connected to the computer and charging but it will not show up on itunes so i am unable to put music on my phone. How can i fix this?

    I have had this problem multiple times. My iphone cord is connected into my usb cord and is charging but will not show up in my itunes. So i am unable to do anything with it concerning music and such. How do i fix this?

    Operating system windows 7en

Maybe you are looking for

  • How to create a program to schedule a job

    Hi Friends, I want to create a report that will run another program(program2) in background. What I need to do is, when I enter the transaction code of this program(report), it will automatically run the program2 in background. I tried using JOB_OPEN

  • How to read a pdf document which is saved on icloud

    how to read a pdf document which is saved on icloud

  • How to Position the 3D Rendering Viewport (not using "BasicScene")

    Hi, I wrote a custom scene manager which directly manipulating the scenegraph (Instance3D) - I just need some more direct access to it. The 3D view is part of a bigger sourrounding AIR/Flex-based Application, which displays some graphics using conven

  • Data moving between Oracle 10g with CLOB fields

    Hi all, I have a trouble in migrate data between Oracle 10g with different platform. The worst thing is that I don't have a DBA account for the DB importing data. I think I can't use IMP or IMPDP in this way. So I seek help from sql developer, but it

  • Bank not display in help list

    Hi Guru, I have been created  sixteen bank (A...........P) in FI module and which are displaying in HCM through info type 9 BANK DETAIL. My question is how I block bank (L & K) in the list of bank key of info type 9 in HCM module. The bank L & K Will