Adobes navigation effect

hello,
i’m trying to recreate the navigation thing in adobe photoshop. If you dont’ know what i’m talking about, its at the top right corner under a tab called navigation, and if there is a larger image then the page can display, theres a red box in the navigation thing. When you drag this to the bottom corner, the real big image goes the the bottom corner.

i hope you understand what i mean.

My idea to do this is to make a box which can be dragged over the small image. And whatever is displayed in this box, is duplicated. But i dont’ know how you can duplicate the image displayed in the box.

you get what i mean!? I’m not really askng for a whole code, because i want to figure it out myself, but this is probably the hardest part of the thing which i can’t figure out :-/ thx :slight_smile:

The content of the smll box is not really duplicated. In fact, you have one small picture and one big picture that is masked. And then you get the offset of your box on the small picture and move the big picture accordingly.

pom :rd:

where is this navigation you’re referring to? (include a link, please)

It’s in Adobe Photoshop :stuck_out_tongue:

yea i thoguth of that but i wasn’t sure how you would do it, because if the small box moved down, the big picture would need to move up and stuff and it’d be confusin…what do you mean by offset though?

Here’s a little something i fixed up, ill try to explain the code if needs be and if i have time
bside it still needs revision

it’s all a story of proportions and position anyway

<embed src=http://mlkdesign.free.fr/misc/kirupa/zoombox.swf height=300 width=400 type=application/x-shockwave-flash>

heres the fla (soorry for the size, it the bmp image thats in it)
http://mlkdesign.online.fr/misc/kirupa/zoombox.fla

wow this is good, but from what i can see, is it only 3 lines which make this work?! i’m not too sure about
[AS]
_root.image._x = -draghandle._x*10+9
[/AS]

why multiply 10 then add 9? and does it mean ‘minus’ the drag handle? oh yea and last part, why draghandle? i thought the instance of this box was called ‘drag’? thhhx a lot :slight_smile:

oh no nvm i just checked bout the draghandle thing. my mistake :slight_smile: but i’m still not sure about the otehr stuff :confused:

sorry i’ll post some explanation later on…

basically when you move the drag-handle (red) right, it drags the big picture left, thats why there’s a minus… I multiplied by 10 because the large image is ten times bigger then the thumb, and added 9 because the viewing windows position is x=9 and y=9 so if my drag-handle is on the top lefthand corner (ie in its relative coordinates it is x=0 and y=0), the the image will be at
x = 9 + 010 = 9
y = 9 + 0
10 = 9
That means you’ll be able to see the top lefthand corner of the large image

Be sure to check the registration points too…
I now ill post some more help…

ah i perfectly get it now, thx. I’ll havta try it out though on my own and i’ll be back if i got anymore questions :slight_smile: