Howdy, guys...
I am trying to think of ways of doing this stuff and I am kinda stuck...
Here is what I want to do...
For example, let's say that I am making a program that shows a map within a scroll pane component... That map needs to be zoomed in and out which I have no problem doing it... I have a functionality that I can drag and drop a marker which is 10 x 10 square onto that map... What I do here is create an instance of that marker everytime I(user) click on the marker icon and do the drag and drop with that instance into the movieclip of the map...
The problem I am having is that the marker gets expanded and reduced when the map is resized by zooming function since the marker is laid inside the movieclip where the map is sitting... I don't want the marker resized everytime the map is zoomed in or out...
Let's just say that the map is 300 x 200, and that is the size of the scroll pane also... I drag and drop the marker at 100 x 100 location in 100% zoomed view... (marker is 10 x 10)
If I zoom the map to be 200%, the map becomes 600 x 400, and the marker should be located at 200 x 200 location with 10 x 10 pixel size... That is what it should be, but what happens is the marker becomes 20 x 20... I thought of reducing the marker movieclip according to the zoom ratio, but if I do, I get the location problem... The marker goes to 205 x 205 instead of 200 x 200 when it is reduced... The marker should be pointing the exact location, so I cannot accept 205 x 205... I played with the registration position of the marker icon, but it didn't make much difference whether the registration position is the center or the top right...
I hope I have explained my problem well... Does anybody shed some light on my exhausted brain??? Is there any way of doing this???
Thank you and have a nice weekend...
Jason