This content has been marked as final. Show 5 replies
how many movieclips are you applying that method to at any one time?
It is being applied to just one.
then something else is causing the problem or you're enlarging a movieclip beyond the displayable stage.
what parameters are you using that you think causes the problem?
The function is to scale down a Movieclip. Inside the movie clip there is a vector map that is exported from Illustrator (approx 9k). The zoom steps are 100, 75, 50, and 25.
This function is to scale down the map (which by default is @ 100%).
The first problem is with deleting the onEnterFrame function @ the end (which takes its time because of the long decimal places).
Other than that - I have no idea what could be causing the massive performance hit.
that onEnterFrame could run forever and would not have an impact on performance.
but you can use Math.abs() to terminate the loop when the scales are close to one another.