Skip to main content
January 21, 2008
Question

What script to pan rectangle and not a square here ?

  • January 21, 2008
  • 1 reply
  • 247 views
Hi,
Real simple one for coders...honest :-)
Total newbie to scripting, but urgently needing to know what to alter in script for simple free zoom and pan image file http://www.flashkit.com/movies/Scripting/Imager_v-Erin_Bre-5884/index.php so as to pan a rectangular image of 709 x 501pixels (A4 proportions) as opposed to the square in the FREEWARE file. Currently the pan works fully westward and stops so far eastward at what would be the squares limit. Author hasn't responded to two emails asking how ...his/her info text file says no support so guess thats why 🙂 ? I need this file , does exactly what I want, and is supposed to be moddable for rectanguar images.
Really need to resolve this simple problem now after weeks of waiting.
Would losing the borders and putting zoom controls onto the image cause a problem ?
Envirographics
This topic has been closed for replies.

1 reply

robdillon
Participating Frequently
January 22, 2008
That example is using some pretty ancient code. The simplest solution is to just abandon it. Here's a simple set of functions that will do the same job.

You will need to make a magnify button and a reduction button. Name the instances "mag" and "shrink", or change the code.
January 23, 2008
Rob,
Many thanks for the reply, certainly looks a lot simpler. I have supplied this to my more experienced helper/tutor to see what we can do now. Both of us were stumped so with this we should be able to finish the task. I shall reply with any issues we hit, if any. I need to have a thin black border and mag buttons just inside so hope he can show me how to have these.
Cheers
Envirographics