# Reset registration?

**URL:** <https://forum.kirupa.com/t/reset-registration/35225>\
**Category:** Uncategorized\
**Created:** [November 11, 2003, 7:59pm UTC](https://forum.kirupa.com/t/reset-registration/35225 "2003-11-11T19:59:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![manifest](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manifest](https://forum.kirupa.com/u/manifest)\
**Post date:** [November 11, 2003, 7:59pm UTC](https://forum.kirupa.com/t/reset-registration/35225/1 "2003-11-11T19:59:29Z")

</div>

i’m trying to zoom in on a picture at the specific spot where the mouse is clicked. ie if the mouse is clicked in the lower left corner, the pic gets bigger from there, not the center of the pic.

the only way i can think of to do this is to reset the registration point to the clicked position. is this possible?  
is there another way to go the job done?

am i the least bit clear?

thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 12, 2003, 5:48pm UTC](https://forum.kirupa.com/t/reset-registration/35225/2 "2003-11-12T17:48:10Z")

</div>

You can’s change a registration point just like that, but you can simulate it: all you have to do is put your clip inside another clip. When you click the container clip, move that clip to the position of the mouse, and offset the picture by the exact opposite. It’s not very clear, but it’s explained in the Real Fake Drag mask tutorial 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 12, 2003, 10:21pm UTC](https://forum.kirupa.com/t/reset-registration/35225/3 "2003-11-12T22:21:44Z")

</div>

i understand the concept. it’s a great idea.  
but i’m bad at math.  
i’ve been working on it and now i have a mess of variables doing very few things.

in the end, i can’t get the mc inside the container clip to go anywhere. onclicking zooms and centers the container to the point where the mouse was clicked. doing this only gets me to zoom in on the center of the pic while moving it around, clicking on different points. it looked like it was working until i realized i kept zooming on the same spot over and over no matter where i clicked.

is my logic ok?  
i get the difference b/t the start pos. of the container and the clicked pos. of the mouse.  
i subtracted that from the start pos. of the internal mc and tried to move it by that much. like i say, didn’t go anywhere.

i’m bad at math.

thanks for the help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 3:03pm UTC](https://forum.kirupa.com/t/reset-registration/35225/4 "2003-11-13T15:03:02Z")

</div>

ok so i got it working. sorta.  
only trouble is, on the initial click, the whole movie shifts to the lower left corner every time. after it gets there it works fine though.  
any ideas? has anyone ever done this thing before?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 4:26pm UTC](https://forum.kirupa.com/t/reset-registration/35225/5 "2003-11-13T16:26:43Z")

</div>

Hmm, strange… Can you post your fla?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 5:14pm UTC](https://forum.kirupa.com/t/reset-registration/35225/6 "2003-11-13T17:14:39Z")

</div>

ok, i’m lame. i just fritzed out.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 5:17pm UTC](https://forum.kirupa.com/t/reset-registration/35225/7 "2003-11-13T17:17:59Z")

</div>

Can’t you upload the file on your server?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 6:05pm UTC](https://forum.kirupa.com/t/reset-registration/35225/8 "2003-11-13T18:05:10Z")

</div>

well i finally figured it out. but the thing’s too big to fit here. i tried the last 30 mins to get the thing smaller, but no luck.  
i’ll put it up on my web site. good idea. thanks for the patience.  
it’s here:  
[http://www.heikkilas.com/mytroubles.fla](http://www.heikkilas.com/mytroubles.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 6:08pm UTC](https://forum.kirupa.com/t/reset-registration/35225/9 "2003-11-13T18:08:32Z")

</div>

and it’s fair to laugh hystarically at my code. i just learned as on my own from a book and this is the most complicated thing i’ve tried to do yet. i’d love the answer to my problem, but i’ll also take tips at getting to the same place in a more efficient way.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 9:42pm UTC](https://forum.kirupa.com/t/reset-registration/35225/10 "2003-11-13T21:42:09Z")

</div>

maybe this’ll be easier?

//sets variables  
cntrx=container\_mc.\_x;  
cntry=container\_mc.\_y;  
pic1x=container\_mc.pic1\_mc.\_x;  
pic1y=container\_mc.pic1\_mc.\_y;

//set clickings  
container\_mc.onrelease=function(){  
mousex=\_xmouse;  
mousey=\_ymouse;  
container\_mc.\_xscale+=10;  
container\_mc.\_yscale+=10;  
container\_mc.\_x=\_xmouse;  
container\_mc.\_y=\_ymouse;

//works variables  
differencex=cntrlx-mousex;  
differencey=cntrly-mousey;  
container\_mc.pic1\_mc.\_x=differencex-pic1x;  
container\_mc.pic1\_mc.\_y=differencey-pic1y;  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 10:23pm UTC](https://forum.kirupa.com/t/reset-registration/35225/11 "2003-11-13T22:23:59Z")

</div>

false alarm. it’s 100% fixed now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 13, 2003, 10:45pm UTC](https://forum.kirupa.com/t/reset-registration/35225/12 "2003-11-13T22:45:50Z")

</div>

Can we see the final result?

To be honest, I am not sure I get what you were trying to do 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 14, 2003, 7:22pm UTC](https://forum.kirupa.com/t/reset-registration/35225/13 "2003-11-14T19:22:06Z")

</div>

the very rough, but final thingy is here:  
[http://www.heikkilas.com/troubles.html](http://www.heikkilas.com/troubles.html)

the trouble turned out to be the simplest of things. a stray letter stuck in a variable. if i had any idea i knew what i was doing, i would have looked for that first, i just assumed i was clueless.

maddening, but good to know the rest woulda worked if i could type.
