いつも使おうと思ったときに忘れているのでメモ。
Frame
import mx.transitions.OnEnterFrameBeacon;
OnEnterFrameBeacon.init();
var hoge:Object = new Object();
hoge.onEnterFrame = function () {
trace("はげー");
}
MovieClip.addListener(hoge);
//MovieClip.removeListener(hoge)
Class
import mx.transitions.OnEnterFrameBeacon;
class Hoge {
function Hoge() {
OnEnterFrameBeacon.init();
MovieClip.addListener(this);
}
function onEnterFrame() {
trace("はげじゃねー");
}
}
参考
BicRe: OnEnterFrameBeaconの使い方
http://blog.cellfusion.jp/2005/12/onenterframebeacon.html
![Flash Math & Physics Design:ActionScript 3.0による数学・物理学表現[入門編]](http://ecx.images-amazon.com/images/I/617sNhK9P9L._SL160_.jpg)



