home *** CD-ROM | disk | FTP | other *** search
- n = -1;
- n1 = 1;
- this.onEnterFrame = function()
- {
- var _loc1_ = _root;
- moving._x += n;
- count++;
- if(count == 200)
- {
- count = 0;
- n = - n;
- }
- if(moving.hitTest(_loc1_.hero))
- {
- _loc1_.hero._x += n;
- }
- moving1._x += n1;
- count1++;
- if(count1 == 120)
- {
- count1 = 0;
- n1 = - n1;
- }
- if(moving1.hitTest(_loc1_.hero))
- {
- _loc1_.hero._x += n1;
- }
- };
-