A simpler way to animate with code?

hi everyone :

nice forums :angel:

so, i have a flash project going right now which is a map of a huge permaculture gardening project. when you click on a garden right now, what happens is you go into a transition where the frame that contains the map gets smaller, and goes to a certain spot, and then panels of information and pictures of the garden itself come in from the sides. very cool.

so the final piece in my puzzle right now, is that i want to control the map with code so that it animates to a specific size and position depending on what garden you picked. in other words, the map animates so that that very garden becomes centered and framed within the smaller frame.

i have a couple of questions about this :

first thing, i did look on the help and found a way to make it animate in increments of whatever until it reaches a certain point, and update the screen every incriment to give the illusion of an animation… [COLOR=magenta]here is the code i found[/COLOR] :

two problems with that. first is that it seems to make my whole transition waaaay choppy. second is that because you can totally drag the map around and zoom in or out with it whiel you’re in the first frame (before the transition), the map could be anywhere on the page and it could be any size. i added various different kinds of conditional statements to my animation code to make it go left right up or down depending on what was needed, but i found that terribly complex and it was mysteriously not working for me as i thought it would.

someone told me that you can actually just make a code that tells the movie clip to animate to a given size and position, and basically just tell it, whatever you have to do to get there, go for it. that is the code that i need to learn i think, and i can’t find it anywhere in flash help.

does anyone know anything about this?

any comments are most appreciated

many thanks!!!

silverbirch

:alien2: