I have a flash movie that loads an mp3 layer when the btn_2 is clicked and also I have an external swf files that will load when btn_1 is clicked and it will load over the main movie.The buttons below will be unclickable everytime the external swf file is loaded and also once the btn_2 for the mp3 player is clicked the btn_2 will be unclikcable but then when I close the external swf file even if the mp3 player is playing the btn_2 becomes clickable, it shouldn’t be like that it should be while the mp3 player even if I close the swf file the btn_2 shouldn’t be clickable unless I close the mp3 player.Can anyone tell me what should I include in the action script 2 to make that possible?I would appreciate any help.Thanks in advance
here is the script for the buttons:
stop();
btn_1.onRelease = function() {
twoButtons();
dimbtn_1._visible = true;
dimbtn_2._visible = true;
btn_1.enabled = false;
btn_2.enabled= false;
loadMovie(“mock2.swf”,myLoader);
}
btn_2.onRelease = function() {
twoButtons();
dimbtn_1._visible = false;
dimbtn_2._visible = true;
btn_1.enabled = true;
btn_2.enabled= false;
gotoAndPlay(2);
}
dimbtn_1.enabled = false;
dimbtn_2.enabled = false;
function twoButtons() {
btn_1._visible = true;
btn_2._visible = true;
}
for the mp3 player close button:
on (release) {
twoButtons();
dimbtn_2._visible = false;
dimbtn_1._visible = false;
btn_2.enabled = true;
btn_1.enabled = true;
gotoAndStop(1);
stopAllSounds();
}
for the external swf file close button:
on (release) {
_root.twoButtons();
_root.dimbtn_1._visible = false;
_root.dimbtn_2._visible = false;
_root.btn_1.enabled = true;
_root.btn_2.enabled = true;
gotoAndStop(2);
}