I am having some problems with my buttons, after i clicked them they seem to stop working.
Ive put my version online http://www.roysterken.nl/test_online.swf
I have this code in root :
stop();
// GEBOUW 2
this.gebouw2_mc.gebouw2_btn.onRollOver = function() {
_root.gebouw2_mc.gotoAndPlay(2);
_root.x +=2;
_root.gebouw2_mc.swapDepths(_root.x);
trace("rollover");
};
this.gebouw2_mc.gebouw2_btn.onRollOut = function() {
_root.gebouw2_mc.gotoAndPlay(1);
trace("rollout");
};
this.gebouw2_mc.gebouw2_btn.onRelease = function() {
_root.gebouw2_mc.gotoAndPlay(7);
_root.x +=2;
_root.gebouw2_mc.swapDepths(_root.x);
trace("release");
};
// GEBOUW 3
this.gebouw3_mc.gebouw3_btn.onRollOver = function() {
_root.gebouw3_mc.gotoAndPlay(2);
_root.x +=2;
_root.gebouw3_mc.swapDepths(_root.x);
trace("rollover");
};
this.gebouw3_mc.gebouw3_btn.onRollOut = function() {
_root.gebouw3_mc.gotoAndPlay(1);
trace("rollout");
};
this.gebouw3_mc.gebouw3_btn.onRelease = function() {
_root.gebouw3_mc.gotoAndPlay(7);
_root.x +=2;
_root.gebouw3_mc.swapDepths(_root.x);
trace("release");
};
And this is the code for the “X” button in the tooltip:
this.tooltip_close.onRelease = function(){
trace("close");
this._parent._parent.gotoAndPlay(1);
};
When i trace “this._parent._parent” it gives me _level0.gebouw3_mc.
While “_root” gives me _level0 same for “this._parent._parent._parent”. But its not working like i want it to, see it here:
http://www.roysterken.nl/test_online_root.swf
What am i doing wrong? ive been working on this for the last past days now and i still dont get it
Thanks in advance for your help!