Let's move the new Ticker to media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@978 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -26,7 +26,7 @@ import flash.geom.Point;
|
|||||||
import flash.geom.Rectangle;
|
import flash.geom.Rectangle;
|
||||||
|
|
||||||
import com.threerings.display.DisplayUtil;
|
import com.threerings.display.DisplayUtil;
|
||||||
import com.threerings.miso.client.Tickable;
|
import com.threerings.media.Tickable;
|
||||||
import com.threerings.util.DirectionCodes;
|
import com.threerings.util.DirectionCodes;
|
||||||
import com.threerings.util.Log;
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import flash.display.Sprite;
|
|||||||
|
|
||||||
import flash.events.Event;
|
import flash.events.Event;
|
||||||
|
|
||||||
import com.threerings.miso.client.Tickable;
|
import com.threerings.media.Tickable;
|
||||||
import com.threerings.util.StringUtil;
|
import com.threerings.util.StringUtil;
|
||||||
|
|
||||||
public class MultiFrameBitmap extends Sprite
|
public class MultiFrameBitmap extends Sprite
|
||||||
|
|||||||
+2
-2
@@ -16,8 +16,8 @@
|
|||||||
// License along with this library; if not, write to the Free Software
|
// License along with this library; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
package com.threerings.miso.client {
|
package com.threerings.media {
|
||||||
|
|
||||||
public interface Tickable
|
public interface Tickable
|
||||||
{
|
{
|
||||||
function tick (tickStamp :int) :void;
|
function tick (tickStamp :int) :void;
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
// License along with this library; if not, write to the Free Software
|
// License along with this library; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
package com.threerings.miso.client {
|
package com.threerings.media {
|
||||||
|
|
||||||
import flash.events.TimerEvent;
|
import flash.events.TimerEvent;
|
||||||
import flash.utils.Timer;
|
import flash.utils.Timer;
|
||||||
@@ -37,7 +37,7 @@ public class Ticker
|
|||||||
{
|
{
|
||||||
_t.removeEventListener(TimerEvent.TIMER, handleTimer);
|
_t.removeEventListener(TimerEvent.TIMER, handleTimer);
|
||||||
_t.stop();
|
_t.stop();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleTimer (event :TimerEvent) :void
|
public function handleTimer (event :TimerEvent) :void
|
||||||
@@ -67,7 +67,7 @@ public class Ticker
|
|||||||
|
|
||||||
/** A timer that will fire every "frame". */
|
/** A timer that will fire every "frame". */
|
||||||
protected var _t :Timer = new Timer(1);
|
protected var _t :Timer = new Timer(1);
|
||||||
|
|
||||||
/** What time our ticker started running - tickStamps will be relative to this time. */
|
/** What time our ticker started running - tickStamps will be relative to this time. */
|
||||||
protected var _start :Number;
|
protected var _start :Number;
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
package com.threerings.miso.util {
|
package com.threerings.miso.util {
|
||||||
|
|
||||||
import com.threerings.miso.client.Ticker;
|
import com.threerings.media.Ticker;
|
||||||
import com.threerings.miso.tile.MisoTileManager;
|
import com.threerings.miso.tile.MisoTileManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user