Hi guys,
I have the following script:
set (“positieMC”, “homeMC”);
_level0.contentMC[positieMC].homeBTN.onRelease = function() {
gotohome();
set (“positieMC”, “homeMC”);
};
_level0.contentMC[positieMC].fashionBTN.onRelease = function() {
gotofashion();
set (“positieMC”, “fashionMC”);
};
_level0.contentMC[positieMC].wijBTN.onRelease = function() {
gotowij();
set (“positieMC”, “wijMC”);
};
_level0.contentMC[positieMC].overheidBTN.onRelease = function() {
gotooverheid();
set (“positieMC”, “overheidMC”);
};
_level0.contentMC[positieMC].btocBTN.onRelease = function() {
gotobtoc();
set (“positieMC”, “btocMC”);
};
_level0.contentMC[positieMC].btobBTN.onRelease = function() {
gotobtob();
set (“positieMC”, “btobMC”);
};
_level0.contentMC[positieMC].commercialsBTN.onRelease = function() {
gotocommercials();
set (“positieMC”, “commercialsMC”);
};
_level0.contentMC[positieMC].diversenBTN.onRelease = function() {
gotodiversen();
set (“positieMC”, “diversenMC”);
};
and I want these targetpath rewritten with the new variable of positieMC everytime I click the button. But somehow this doesn’t work. I have the idea that theze targetpath are not rewritten when I click the button.
Does anyone has an idea?
Thanks!