Can I make an object draggable, but once it's let go of it magnetically returns to it's origin?

Sort of like an elastic object. Touch and hold and drag, release and it goes back.

you're welcome
my project have 4 parts notice that if you do them all you should be able to make yours without any prob...
1 -  you should have the js Folder in your project folder so you can load pep plugin
2 -  you have to copy paste these necessary codes to your Stage > CompositionReady
yepnope({
          nope:[
          'js/jquery.pep.js',
          complete: init});
function init() {
   var rectangle = sym.$(".Dragger");
          rectangle.pep({constrainToParent: true});
3 - add Dragger Class to your objects
you can do it by selecting your object in the right panel then in the properties panel in left side of edge animate in front of you object title you have a C word that stands for class, click on it and type Dragger in there, and Enter
4 -  add this line to the object Action part in >touchend, >mouseout & >mouseup
sym.$("Object").stop().animate({"left":"207px", "top":"159px"}, 250)
i hope you can make it this time
Zaxist

Similar Messages

  • How can 1 make an object of user defined class immutable?

    Hi All,
    How can one make an object of user defined class immutable?
    Whats the implementation logic with strings as immutable?
    Regards,

    Hi All,
    How can one make an object of user defined class
    immutable?The simple answer is you can't. That is, you can't make the object itself immutable, but what you can do is make a wrapper so that the client never sees the object to begin with.
    A classic example of a mutable class:
    class MutableX {
        private String name = "None";
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
    }I don't think it's possible to make this immutable, but you can create a wrapper that is:
    class ImmutableX {
        private final MutableX wrappedInstance;
        public ImmutableX (String name) {
            wrappedInstance = new MutableX();
            wrappedInstance.setName(name);
        public String getName() {
            return wrappedInstance.getName();
        // Don't give them a way to set the name and never expose wrappedInstance.
    }Of course, if you're asking how you can make your own class immutable then the simple answer is to not make any public or protected methods that can mutate it and don't expose any mutable members.
    Whats the implementation logic with strings as
    immutable?
    Regards,I don't understand the question.

  • I want to transfer my music to a new account, as of now my dad and i share an account, if i transfer my music to a new account id lose it all. How can i make a new account but yet still keep all my music?

    I want to transfer my music to a new account, as of now my dad and i share an account, if i transfer my music to a new account id lose it all. How can i make a new account but yet still keep all my music?

    "I want to transfer my music to a new account"
    You cannot.
    "How can i make a new account but yet still keep all my music?"
    Authorize your computer  for your Dads account as well as for yours.  That's it
    Put the music on your computer

  • When I lock my screen I can't slide it to unlock I can unlock by the finger print but once on home screen I can swip or press any apps

    When I lock my screen I can't slide it to unlock I can unlock by the finger print but once on home screen I can swip or press any apps

    Try holding the Power and Home button until the phone powers off and the Apple logo appears
    No data will be lost

  • How can we make one object as synchronizable?

    Hi!
    I am new to java.How can we make one object as synchronizable?
    Thanx

    Synchronize is used to make an object and/or a functional sequence thread safe. By itself it does not make something thread safe.
    So the point is to make something thread safe not just to synchronize it.
    You can either sychronize a method like so....
          public synchronized void doit()
    Or you synchronize on an object (where 'Object' below is solely as an example, any object can be used)...
          Object lockObject = new Object();
          public void doit()
             sychronized (lockObject)

  • My phone says it can't make or receive calls but it sends texts. How do I fix it?

    My phone says it can't make or receive calls but it sends texts. How do I fix it?

        haynes88,
    Yikes! I want you to be able to make phone calls on your cell phone! I would recommend what others have stated on here as well. Remove the sim card for a good 30 seconds while the phone is off. Then try to make the phone call again. Have you ever replaced the sim card on your device before? You can always get a new sim card for free at a corporate store location: http://bit.ly/3SdsA Please keep us posted.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • How can i make my object appear as a mesh?

    How can I make an object appear as a mesh? I dont want anything as complicated as a coloured gradient I just want a flat object to appear like a net. Is there an easy way to do this?
    Thanks
    J

    Jules,
    Depending on the shape, and upon the appearance (varying width and/or knotting or whatever), it may be anything from a Rectangular/Polar Grid (bundled with the Line Segment Tool) to something intricate and difficult.

  • TS1702 I have an iPad 1. I went to do an update on GarageBand and iBooks but it will not update. How do I return it to the original version?

    I have an iPad 1. I went to do an update on GarageBand and iBooks but it will not update. How do I return it to the original version?

    Well, to paraphrase the old line, "What're you gonna believe, that email or your own lying eyes?"
    The first thing I'd recommend trying is to power down your iPad (press & hold Sleep/Wake until the red OFF slider appears, then slide it to shut down), and then boot it back up and try again. You're resetting a bunch of state signals by doing that and this simple action (the first of a series recommended by Apple in your Users Guide) will quite often clear up these sorts of problems.

  • I'm on vodafone but can't make or receive calls, but viber, messages and Internet work perfectly. Any ideas?

    I'm on Vodafone, but can't make or receive calls. Viber, messaging and the Internet work fine. I've an iPhone 4. Any ideas?

    Did you activate roaming before going abroad?
    Click on EE & ME and where it says My Account, click on Devices and Usage and enable it from there, cllick on EE & ME and where it says travel and shopping click on using phone abroad.
    http://ee.co.uk/help/add-ons-benefits-and-plans/call-or-going-abroad/roaming---using-your-phone-abroad/using-4g-abroad

  • Can't make any FaceTime calls, but can receive calls

    Any advice on how to enable outgoing Facetime calls on an iPad 2.
    I have set Facetime up with my Apple User ID and several people have been able to make Facetime calls to me and they work perfectly. However, if I try to initiate a Facetime call to any user, I always get the message that they are unavailable for Facetime. I have checked with each of them that I have the correct emails in my contacts that is associated with their Apple IDs and with their Facetime, but still I can't make any calls to them.
    I have not found anything in the Apple support pages that is effective. I have also completely wiped the iPad back to the just out of the bax stage and set it up from scratch as a new iPad, but that didn't help at all. I have also reset all settings, tried changing the DNS to 8.8.8.8, but nothing seems to make any difference. It will not make any outgoing calls with facetime, but is happy to receive them.
    Am I missing something obvious ?
    It is an iPad 2 (wifi and 3G model), but doesn't have a 3G SIM installed yet. I understand Facetime doesn't use 3G, only wifi.

    You might be right about the email thingy.
    I have managed to overcome the problem somewhat by getting the contacts I couldn't call to Facetime me on my MacBook Pro. This leaves their contact details on the Recents list in the Facetime window. I was able to click on these contact details to make a reply call. I then added them to the Favourites list (click the > symbol next to the recent contact and click the Add to Favourites button). The email address appears the same as before, but the one in the Favourites list works.

  • How can I make an object float to the left or right?

    I am currently working with a site that is designed to fill the browser window.
    I would like my footer elements to attach to the left and right respectively. I know in html this can be accomplished by using "float", but I don't see any way to accomplish this in Muse.
    Am I missing something?

    Hi Skyler,
    If you are looking for the element to remain on screen in same position at all times then I think using the 'pin' option is what you are looking for. With a box (or whatever) selected you'll see an option at the top, next to your x,y co-ordinates with a little square with 6 selectable points, each point representing where the element will stick to.
    Alternatively if you are just wanting the bar of the footer to stretch across the window regardless of size then if you have the left of the bar exactly on the outside left edge of your page, and same with right, it should do the stretching for you automatically.
    Is this what you were meaning?

  • TS2972 Right guys, I have set up home sharing on my Desktop and my Laptop.  I can access the Library on each but it won't let me import for one to the other!! What have I done wrong?!!!

    I have set up home sharing on my desktop and my laptop, I can access the library for each on both computers but it won't let me click on import!!  Any ideas why it won't let me import?
    Cheers

    I can access the library for each on both computers but it won't let me click on import!!
    Is the Import button greyed out?
    If so ... quickly doublechecking ... do you currently have any items selected in the screen?

  • How can I make a window transparent but keep its objects opaque in Cocoa-Applescript?

    How can I do this in Cocoa-Applescript, Xcode? As well, is it possible to blur the area behind where the transparent window is?

    You can set the window transparency with something like:
    theWindow's setBackgroundColor:(current application's NSColor's clearColor)
    theWindow's setOpaque:false
    I haven't seen a way using public APIs to blur behind the window, but I'm not sure about using ASObjC with stuff like Core Image, anyway.
    You might also try something like setting the background to a gray color and play with the grayscale and alpha values (colorWithCalibratedWhite:0.0 alpha:0.2, for example).

  • How can we make smart objects smarter?

    Smart objects are great and can be a really useful time saver. That said, i'm having a problem and I'm hoping that there is a solution out there. I'll preface this with the statement that, I may not be using smart objects as they were intended, but I feel like this is how they should work:
    A basic example - say you have a "Login" button.
    It would be great/obvious to have that as a smart object. It would be greater still to have the on, off, rollover, clicked states to be within that smart object.
    Now, if you place that smart object as a linked object into a document, there is no way to say "in this instance, I want to show the off state of the button". If you open the smart object and change the state to that and save - then it will update all instances everywhere in all PSDs where it exists and all of your buttons are now in an off state.
    Now, clearly, in this example, the easy answer is just make 4 smart objects. Easy peasy.
    The problem with that is two fold:
    1. if "Login" changes to "Logon" I need to make that change in 4 places instead of just one.
    2. The button example is simple, but what if my smart object is more complicated than that? What if there a complex set of layers that make up that object? Making changes to multiple complex layer files kind of defeats the purpose of having smart objects no?
    You can embed the object and thus break the external link and change things to your heart's content without effecting other instances - but then what really is the value of creating the smart object then? You might as well just have a layer group that you drag from PSD to PSD.
    The way smart objects should work, IMHO, is that you should be able to toggle layers on and off per instance of the object, BUT any pixel modifications to a layer within, bubble up to all instances that are displaying that layer  (say - a colour change, or text change, etc).
    Thoughts?

    Hi,
    Check the below links.
    http://sharepoint.aspcode.net/view/635399286724222582123340/sso-between-2-host-named-sitecollections-with-different-subdomains
    http://blogs.msdn.com/b/russmax/archive/2013/10/31/guide-to-sharepoint-2013-host-name-site-collections.aspx
    http://blog.repsaj.nl/index.php/2014/07/sp2013-host-named-site-collections-adfs-claims-and-aam/
    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

  • How can I make an object appear to glow (produce it's own light)?

    Can anyone help me with this? ex. make a plant glow like a lightning bug or things like a "light saber"?  have tried lots of things but nothing looks realistic.

    Hello!  When something appears to glow, the glowing object will often appear high in value (i.e. close to white) with very little color, with a much more colorful halo around it.  You will see this in the lightsaber effect, as well as neon signs, street lamps, and similar sorts of light sources. 
    To emulate this in Photoshop, here is an example of a yellow-orange light source glowing against a dark forest background, which could be a firefly or something like that. 
    I began with a stock image of a forest at night, and using an airbrush with white selected for the foreground color, painted a small circle on a transparent layer.
    To indicate the color of the light, I selected the layer with the white circle on it, and clicked the Layer Effects button within the layers panel. 
    From the drop-down menu, I selected Color Overlay.
    I chose a very saturated yellow, and turned the opacity down to around 23%.  This shows the color of the light while keeping it close to white, indicating the brightness. 
    To show the glow, I chose Outer Glow from inside the Layer Effects panel.  I chose a similar saturated yellow, set the blending mode to Screen, and set the opacity to around 80%.
    And here is the final image.  Is this similar to the effect you were going for? 

Maybe you are looking for

  • External Hard Drive randomly become unwritable?

    Hard Drive: Lacie Rugged 1.5 TB hard drive. Formatted : MacOS Extended (Journaled) 853 GB used, 647 GB Free Randomly this occurs:  I will try to copy something to the Lacie and it gives me any error saying it can not write to the disk... I eject the

  • PO Deletion

    Hi,        I want to delete the PO, Actually  the PO is created very long back, after that we change the Release strategy but the PO is Open so I want to delete that PO. If there is any possibilities please give me the steps. With Regards.... Vengat.

  • Network and antenna questions about iPhone 5

    My iPhone 4, on ATT's network, has very poor connectivity. Surely verizon must be better. I'm thinking of upgrading and switching, and I'm also wondering if the antenna on the iPhone 5 does any better.

  • Get a "do not support paypal, etc" when trying to purchase apps fr my iPad, and unable to change my billing preferences

    When I try and purchase apps a msg pops "...problem with a purchase and no longer will support paypal".  When I try and change my billing info in the store I am unable.  I cannot do anything until this problem solved.  I cancelled a recurring charge

  • Setting the view size grief

    Hi all, Having a index page with 40 links on to individual files, each of the files has the initial view properties set to 100%, except the Index which is set to fit page. When I click on my machine, I get consistent viewing at 100%, but when asking