This content has been marked as final.
Show 4 replies
-
1. Re: Buggy Action Script
Newsgroup_User Jul 6, 2006 3:45 PM (in response to gold987987987)use != instead of <>, use && instead of and
--
Jeckyl
-
2. Re: Buggy Action Script
gold987987987 Jul 7, 2006 8:29 AM (in response to Newsgroup_User)We'll I think I changed what you said and it still doesn't work. Here is what I changed:
on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release) {
if (_root.b!=4 && _root.m!=1) {
_root.cont.gotoAndPlay("s1");
_root.b = 4;
_root.xkoord = -225;
_root.ykoord = 395;
_root.pages.pag4.t1 = "";
_root.pages.pag4.t2 = "";
_root.pages.pag4.t3 = "";
_root.pages.pag4.t4 = "";
}
}
Is that correct? I did not have to change anything in the other AS? -
3. Re: Buggy Action Script
Andreq85 Jul 7, 2006 12:03 PM (in response to gold987987987)on (enterFrame) {
y = y*accel+(_root.ykoord-_y)*rate;
_y += y;
x = x*accel+(_root.xkoord-_x)*rate;
_x += x;
if (Math.abs(_root.ykoord-_y)<1) {
_y = _root.ykoord;
}
if (Math.abs(_root.xkoord-_x)<1) {
_x = _root.xkoord;
}
}
x alone and y alone is a reserved property for component... it may not help to use them as var...
could you put the actualy error code here if there is still one ? -
4. Re: Buggy Action Script
gold987987987 Jul 7, 2006 12:14 PM (in response to Andreq85)No more error code. I change the AS to this and it works, but it moves really slow. Any ideas?
onClipEvent(load) {
accel = _root.accel;
rate = _root.rate;
}
onClipEvent(enterFrame) {
y = y*accel+(_root.ykoord-_y)*rate;
_y += y;
x = x*accel+(_root.xkoord-_x)*rate;
_x += x;
if (Math.abs(_root.ykoord-_y)<1) {
_y = _root.ykoord;
}
if (Math.abs(_root.xkoord-_x)<1) {
_x = _root.xkoord;
}
}

