Okay all you geniuses. I am working with Flash MX and trying to tweak a file that Senocular gave me. I can understand most of the code but am new (a TOTAL NOOB) to OOP and prototypes so am not sure how to proceed. I could ask Sen directly but I’ve bugged him so much recently that i am terrified he is going to run screaming every time he sees my username show up somewhere . . .
So . . . (deep breath) . . . here goes.
First off, the original file I am working from (Sen’s beautiful creation) is attached. It creates a MapController object to manipulate a map on the screen through a couple of prototype functions (scales and pans). Then there is another object called SelectionBox that has prototype functions that allows the user to draw a box on the map. The map then zooms (scales) and pans to fit the size of the box that was drawn.
You can also pan the map by pressing the arrow keys.
Here is what I want to do:
1)When the user draws the box it disappears and the map scales/pans. I would like to have an inset map that shows the box drawn but doesn’t disappear so you know where in the map you are.
Do I need to create a whole 'nother object for this? Or can I create another instance of the SelectionBox and just scale it? (the inset is 1/4 of the big map). The problem with this is that there is a command to clear the drawing built in to the object prototype functions.
I have attached the original fla. I can also just post some code (a bunch of code actually) if that would help someone answer my question.
My boss will adore me if I can pull this off. Any hints on directions to take?
:s: