My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Copyright (c) 2008 michiyasu wada
* http://www.seyself.com/
*
* Distributed under The MIT License.
* [http://www.opensource.org/licenses/mit-license.php]
*/

import flash.events.EventDispatcher;
import flash.events.Event;

class com.seyself.events.EnterFrameBeacon extends EventDispatcher
{

private static var initialized:Boolean = false;

public function EnterFrameBeacon()
{
_init();
}

private function _init():Void
{
if ( !initialized ) {
initialized = true;
var loc:EnterFrameBeacon = this;
var container:MovieClip = _root.createEmptyMovieClip("__EnterFrameOperator__", 35214 );
container.onEnterFrame = function():Void
{
loc.dispatchEvent( new Event( "enterFrame" , false, false ) );
}
}
}

public function toString():String
{
return "[object EnterFrameBeacon]";
}

}

Change log

r112 by seyself on Mar 28, 2008   Diff
[No log message]
Go to: 
Project members, sign in to write a code review

Older revisions

r109 by seyself on Mar 28, 2008   Diff
[No log message]
All revisions of this file

File info

Size: 1011 bytes, 40 lines
Powered by Google Project Hosting