Hi there…
Okay just quick shoot here…I want the panning to stop when it reaches the edge of the map, no matter what size the map has been scaled up to. It’s a static map that the user can scale up and down to zoom in on specific features. The trouble is that when they pan the zoomed in map, they can actually drag the map off the edge, revealing the empty stage behind it.
So I’ve been setting the boundary constraints MANUALLY by try and error easing the maps to get exactly numbers to put in the startDrag properties
dummymap.startDrag(false,87,38,450,487);
//startDrag(left,top,right,bottom);-->this properties being set manually...
BUT, the problem has occured when I start rescale the maps…the boundary has limited me in order to panning the map…the startDrag properties setting no longer cant be use…u can see the preview here and test it then u will get what I mean…
http://www.franzacollections.net/mapstuff/drag_constraints.swf
So my big curiousity and questions is it possible dynamically I can change the setting properties for the startDrag() which is left,top,right,bottom…for different map scale???
U can take look my current code below…and can edit as well…Unless give me some shed on light …tq in advanced…
http://pixeldude.pastebin.com/d62858dbd
In case wanna see my file u guys can grab here…
http://www.franzacollections.net/mapstuff/drag_constraints.fla
Ok really hoping someone can help me out with this…any help are really appreciated…
Thanks