I have a strange problem, and I haven't seen it anywhere else on the web.
I have a basic flash document with a large number of movie clips activated with many individual mouse events. The idea is, the user has certain text information displayed whenever they mouse over a certain element. Now, the problem presents itself after the user "mouses over" a good number of the elements. Some of the text appears to have been "painted over" or erased. Here is an example:
There are about 160 more of these such movie clips, but not every one of them has this happen. I have compared them and there is nothing different between problem movie clips and normal movie clips.
This is a piece of the actionscript I have, I won't paste it all in here...it's really long:
chadron.buttonMode = true;
haysprings.buttonMode = true;
hemingford.buttonMode = true;
Thank you for any help. I need it.
This is the function I have set up for the mouse events:
The movieclip is set up to fade in when the target movieclip is "moused" over, and fade out when moused out of. Here is what my timeline looks like inside of each individual target movie clip element:
The "header" layer is what contains the text (which is also a movieclip) being faded in and out.
Here is a link to it on the web too incase you would like to see it in action. It won't start having problems until you mouse over quite a few of them, so be patient and it will eventually show you what I'm talking aobut.
I added that line of code and it gives me this error:
|animation, Layer 'Actions', Frame 1, Line 660||1118: Implicit coercion of a value with static type Object to a possibly unrelated type flash.display:DisplayObject.|
What that does is place the hovered object above anything else on the playing field. So the problem you were/are having is likely some remnants of hovered pieces that do not manage to transition out fully are left behind and start blocking content. Some are not sitting below others which would account for some not being affected
I see, now that I understand what it does, this has presented another slight issue for me. If you will visit the link I posted earlier (http://administrators.toddbecker.org/new/ne.html) you will notice that after mousing over the different points on the map, the white space below becomes a "mouseover area", causing some of the text elements to appear and disappear when you move your mouse around below the map.
I'm sure there is a proper way to deal with this. Before, I had simply made a transparent box into a movieclip and covered the bottom portion of the page with it, solving this problem. But this may be what caused the initial problem. Any insight would be appreciated. I apologize if I should have posted a new thread for this second issue.
Yeah, I'd be lying if I said I didn't see that coming up. Had you not already made so many of them I would suggest you take a different approach and use code to manage the transitions instead of the timeline animations. But here is an option that might work... create an invisible movieclip (alpha = 0) that covers the area below, and each time you addChild(MovieClip(e.currentTarget)), also addChild() that invisible movieclip so that it blocks access to anything beneath it. If it turns out that you need to be able to interact with what is displayed below that, just switch the order of the addChild()'s so that the invisible movieclip is one below it (and addChild it again for the rollout to avoid the same problem you have now)
Europe, Middle East and Africa