Hi all,
I posted before but don’t think I explained myself very well
I’m trying to do an interactive map. When someone rolls over the store unit, the colour changes and a little popup with store logo and info appears (loaded from XML)
The XML loading etc. works fine. But I can’t figure out how to reference the correct movieclip on rollover.
I created this little function which finds all the movieclips but it seems wrong cos it outputs ALL unitnames each time a movie is rolled over - and surely that’s not very processor friendly?
function Floorplan() {
//Find all the movie clips in the 'holder' mc
for (var property in holder.thisLevel) {
// Check if the current property of myClip is a movie clip
if (typeof holder.thisLevel[property] == "movieclip") {
holder.thisLevel[unitname]=holder.thisLevel[property];
trace(holder.thisLevel[unitname]);
holder.thisLevel[property].onMouseDown = floorplanOnPress;
holder.thisLevel[property].onRollOver = floorplanOnRollover;
holder.thisLevel[property].onRollOut = floorplanOnRollout;
}
}
}
I guess what I’m asking is, is there a way of linking static movieclips already on the stage to ones generated from the XML?
Thanks in advance!