My favorites
|
Sign in
seyself
Personal ActionScript Library
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
‹r109
r124
Source path:
svn
/
trunk
/
as2
/
classes
/
com
/
seyself
/
events
/
EnterFrameBeacon.as
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]";
}
}
Show details
Hide details
Change log
r112
by seyself on Mar 28, 2008
Diff
[No log message]
Go to:
...yself/events/EnterFrameBeacon.as
.../seyself/events/EventMediator.as
...seyself/switches/ButtonSwitch.as
...s/com/seyself/switches/Switch.as
.../flash/events/EventDispatcher.as
...lasses/flash/utils/Dictionary.as
...as2/classes/flash/utils/Proxy.as
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
View raw file
Hosted by