Image

Dynamic Button rollover fail

Edited to add-  I just rebuilt the buttons with the same code and it works now.

I've encountered a weird bug and was wondering if any of you have come across this.

I'm just hacking this out quickly in as1, no fancy stuff here!
I have a series of swfs with clickable areas - buttons with instance names hotspot1, hotspot2, hotspot3, etc.

My main movie loads one of these swfs and assigns rollover, rollout and release event handlers for the hotspots dynamically - this is triggered by a call from the loaded movie clip.

So, one of my swfs has 32 hotspots, and for some reason the last four will not take the event handlers. If I trace hotspot29's instance name, flash knows it exists. If I trace hotspot29.onRelease I get 'type Function', just like for the working ones. But they just don't work. 

Now here's the bizarro part - if I rename hotspot1 as hotspot29 and hotspot29 as hotspot1, they both work!

I guess I can work around it this way and just switch the rest of my info to correspond. But it's driving  me crazy - why would it be doing this?

It's kind of a weird setup just to accomodate the volume of the clips I have to make - otherwise i would have done hotspot locations via coords from an xml file instead of putting buttons in an swf - but since i have to make a ton of these, that's faster.