shockyshocky
05-27-2003, 11:24 PM
Hi, I've read through one of those sliding menu tutorials and decided to modify it since I'm only sliding one image horizontally, but it cant seem to work. Please help.
FLA: http://shocky.t35.com:8000/test.fla
If you don't want to dl it, here's what I did
First i created the image i want to slide and instance-named it pages.
Next I created controlMC with 2 layers. First layers have 2nd 3rd and 4th frames labelled "one" "two" "three", and second layer have the following code:
_root.pagesTargetX = 50;
_root.controlMC.gotoAndPlay(change);
further down controlMC timeline, I have the a frame on the first layer named "change", and on the second layer, the following code:
gap = _root.pagesTargetX - _root.pages._x;
_root.pages._x = _root.pages._x + (gap / 3);
2 buttons were created with:
on (press) {
controlMC.gotoAndPlay("two");
}
The resulting motion is jerky and the buttons dont work right... pls help
FLA: http://shocky.t35.com:8000/test.fla
If you don't want to dl it, here's what I did
First i created the image i want to slide and instance-named it pages.
Next I created controlMC with 2 layers. First layers have 2nd 3rd and 4th frames labelled "one" "two" "three", and second layer have the following code:
_root.pagesTargetX = 50;
_root.controlMC.gotoAndPlay(change);
further down controlMC timeline, I have the a frame on the first layer named "change", and on the second layer, the following code:
gap = _root.pagesTargetX - _root.pages._x;
_root.pages._x = _root.pages._x + (gap / 3);
2 buttons were created with:
on (press) {
controlMC.gotoAndPlay("two");
}
The resulting motion is jerky and the buttons dont work right... pls help