[FMX] Movieclip border problem

Yep, it’s me again. I don’t know if I’m asking the impossible with this one, or overlooking the obvious. Only been playing with ActionScript and Flash for about a week, so it could be either.

I have a library of XML files that I’m calling using variables from three combo boxes. When the movie loads, it draws 609 polygons as movie clips to represent a watershed area. In the interests of performance, I would like to just change the background color of the polygons as parameters change, rather than redrawing the polygons each time. I’ve worked out how to change the background colors, but the border each of the polygons disappears, and I’d much rather it wouldn’t. How do I keep that from happening?

The movie is here if you want to see what I’m talking about - just change any parameter and hit the button. You can grab the [URL=http://www.jenweb.net/geo/xml_pull_17.fla ].fla here (352k) if you want to look at the code.

Thanks muchly in advance.

Jennifer

I found a solution to this one, so thought I’d pop back and share it just in case anyone else runs into a similar problem.

Turns out it’s a bug (see here) with the way Flash reports the size of movie clips. The workaround I used is to create two movie clips, one of the fill with a hairline lineStyle and one of the border with no fill and a one-pixel lineStyle. The initial load time is longer because it has to draw all of those polygons twice, but it never has to draw them again. Works great - I’ll put it up on the web later today if you want to have a look.

Jennifer