mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-21 09:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,53 @@
|
||||
package room
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
import flash.events.Event;
|
||||
|
||||
public class RoomObject_ForwardReverseHold extends RoomObject
|
||||
{
|
||||
|
||||
public function RoomObject_ForwardReverseHold(param1:MovieClip)
|
||||
{
|
||||
super(param1);
|
||||
param1.gotoAndStop(1);
|
||||
}
|
||||
|
||||
override public function mouseDown(param1:Boolean) : void
|
||||
{
|
||||
if(param1 && _bHold == false && _mc.hasOwnProperty("mouseDown"))
|
||||
{
|
||||
_mc.mouseDown();
|
||||
}
|
||||
_bHold = param1;
|
||||
}
|
||||
|
||||
override protected function onEnterFrame(param1:Event) : void
|
||||
{
|
||||
var _loc2_:* = _mc.currentFrame;
|
||||
if(_dir == 1)
|
||||
{
|
||||
if(++_loc2_ <= _mc.totalFrames)
|
||||
{
|
||||
_mc.gotoAndStop(_loc2_);
|
||||
}
|
||||
else
|
||||
{
|
||||
_dir = 0;
|
||||
}
|
||||
}
|
||||
else if(_dir == -1)
|
||||
{
|
||||
_loc2_--;
|
||||
if(_loc2_ > 0)
|
||||
{
|
||||
_mc.gotoAndStop(_loc2_);
|
||||
}
|
||||
else
|
||||
{
|
||||
_dir = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user