In my M/c I added a empty M/C gave it a instance name “content”
Rather than use actions on normal buttons like.
button.onRelease = function() {
_root.content.loadMovie(“pic.swf”);
};
I have this as my buttons giving of elastic effect, As you can see.
on (rollOver) {
this.swapDepths(2);
jump = false;
xscale *= 1.5;
yscale *= 1.5;
}
on (rollOut) {
this.swapDepths(1);
xscale = 70;
yscale = 70;
}
on (release) {
_root.mc2.gotoAndPlay(3);
}
onClipEvent (load) {
xscale = 70;
yscale = 70;
jump = false;
sX = 0;
sY = 0;
jumpfactor = 0.69999999999999996;
jumpratio = 0.59999999999999998;
}
onClipEvent (enterFrame) {
if (!jump) {
sX = Number(sX * jumpfactor) + Number((xscale - _xscale) * jumpratio);
sY = Number(sY * jumpfactor) + Number((yscale - _yscale) * jumpratio);
_xscale = _xscale + sX * 2;
_yscale = _yscale + sY * 1;
}
}
on (release) {
content.loadMovie(“pic.swf”)
}
Note the last actions “Content.loadmovie(“pic.swf”)” Is what I have a problem with for some reason I am stuck I know the code works perfect on basic buttons, Can you help me please fix this problem. I dont get any errors showing when testing, Just that the pic swf will not load. :puzzled:
I have used _root and _parent
Many thanks
Regards Barrie