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
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.
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?
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
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 + 010 = 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…