Hi,
I only have FlashMX so I can't view the demo file. The one thing I do notice in your code is an incorrect use of the equality operator.......
if (_root.navOpen = 0)
A single "=" sign assigns a value
A double "==" sign compares a value
So, the corrected code(without really understanding what your trying to do)....... would look like.......
Code:
onClipEvent (enterFrame) {
if (_root.navOpen == 0) {
direction = ((300-_root._xmouse)/20);
if (((this._x>=400) && (direction>0)) || ((this._x<=200) && (direction<0))) {
direction = 0;
}
this._x = this._x+direction;
}
}
Hope it helps
NTD
A mind once stretched by a new idea never regains its original dimensions.
- Oliver Wendell Holmes
Bookmarks