Created
July 6, 2011 13:38
-
-
Save bclinkinbeard/1067235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package processors | |
{ | |
import flash.events.Event; | |
import org.swizframework.core.Bean; | |
import org.swizframework.core.ISwiz; | |
import org.swizframework.processors.IBeanProcessor; | |
public class VNProcessor implements IBeanProcessor | |
{ | |
public function VNProcessor() | |
{ | |
} | |
public function setUpBean(bean:Bean):void | |
{ | |
} | |
public function tearDownBean(bean:Bean):void | |
{ | |
} | |
private var _swiz:ISwiz; | |
public function init(swiz:ISwiz):void | |
{ | |
trace( "navigator:", swiz.dispatcher[ "navigator" ] ); | |
_swiz = swiz; | |
swiz.dispatcher.addEventListener( Event.ENTER_FRAME, onEF ); | |
} | |
private function onEF( event:Event ):void | |
{ | |
trace( "checking" ); | |
if( "navigator" in _swiz.dispatcher ) | |
{ | |
trace( "GOT IT!", _swiz.dispatcher[ "navigator" ] ); | |
_swiz.dispatcher.removeEventListener( Event.ENTER_FRAME, onEF ); | |
} | |
} | |
public function get priority():int | |
{ | |
return 0; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment