HI Folks
i have a built a little interactive map for a client and have a series of movie clips contain contact details and email addresses when each city is clicked upon.
I am using the mc tween prototype to alpha them in and out to make it look a bit more slick. The map_mc contains movie clips for each city (with an onClipEvent to populate a field in a pop up with the city name) which in turn contain an invisible button with (on) rollOver, (on)rollOut actions and (on)press actions for displaying the pop up and contact movie clips for each city.
I have written a function that resets the email and web address buttons inside each contact movie clip (on)press which works fine:
function resetBtns(){
nz_mc.nz_email.enabled = false;
nz_mc.nz_web.enabled = false;
syd_mc.syd_email.enabled = false;
syd_mc.syd_web.enabled = false;
bris_mc.bris_email.enabled = false;
bris_mc.bris_web.enabled = false;
mel_mc.melb_email.enabled = false;
mel_mc.melb_web.enabled = false;
perth_mc.perth_email.enabled = false;
//others removed to keep space down
sing_mc.sing_email.enabled = false;
sing_mc.sing_web.enabled = false;
mal_mc.mal_email.enabled = false;
mal_mc.mal_web.enabled = false;
trace("the resetBtns function has fired");
}
and the invisible buttons have the following actions to reveal the contact movie clips:
Code:
on (rollOver) {
_parent._parent.hover.startDrag([lockCenter]);
_parent._parent.hover._visible = true;
_parent._parent.hover.txt.text = this.hoverTxt;
}
on (rollOut, dragOut) {
_parent._parent.hover.stopDrag();
_parent._parent.hover._visible = false;
}
on (press){
_parent._parent.resetCities();
_parent._parent.resetBtns();
[COLOR=red]_parent._parent.nz_mc.nz_email.enabled = true;
_parent._parent.nz_mc.nz_web.enabled = true;[/COLOR]
_parent._parent.nz_mc.alphaTo(100,1,"linear");
}
everything works perfectly apart from the lines in red. The enabled = true is simply not working. I have checked that the path is corrected by substituting _alpha = 30 and the email and web buttons dim…
This is driving me nuts and I have a deadline tomorrow. I have attached the FLA if someone could please help me and have a look at it - so far as I can see it should work!
Thanks in advance!
Andy