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 { | |
import flash.display.Sprite; | |
public class Test extends Sprite { | |
public function Test() { | |
for (var i:uint = 0; i < 500; ++i) { | |
if (i * 0.01 != i / 100) { | |
trace(i); | |
} |
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 { | |
import org.osflash.signals.Signal; | |
public class ApplicationSignalBus | |
{ | |
public const configPathChanged:Signal = new Signal(File); | |
public const stylesheetChanged:Signal = new Signal(StyleSheet); | |
public const accountLoggedIn:Signal = new Signal(AccountVO); |
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 { | |
import flash.utils.setTimeout; | |
import org.osflash.signals.Signal; | |
import org.robotlegs.mvcs.Mediator; | |
public class ViewMediator extends Mediator { | |
[Inject] | |
public var signalBus:ApplicationSignalBus; | |
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 | |
{ | |
public class BaseMediator extends Mediator | |
{ | |
[Inject] | |
public var signalBus:ApplicationSignalBus; | |
[Inject] | |
public var styleController:StyleController; | |
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 com.destroytoday.destroytwitter.signals | |
{ | |
public class ApplicationSignalBusTest | |
{ | |
protected var signalBus:ApplicationSignalBus; | |
public function ApplicationSignalBusTest() | |
{ | |
} | |
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 com.destroytoday.desktop | |
{ | |
import com.destroytoday.desktop.KonamiCode; | |
import flash.display.Sprite; | |
public class KonamiCodeTest extends Sprite | |
{ | |
public var konamiCode:KonamiCode; | |
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
protected function statusEnterframeHandler(event:Event):void | |
{ | |
switch (view.status.text) { | |
case "starting up": | |
view.status.text = "starting up "; | |
break; | |
case "starting up ": | |
view.status.text = "starting up."; | |
break; | |
case "starting up.": |
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
public function openLinkInBackground(url:String):void | |
{ | |
NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, applicationDeactivateHandler); | |
navigateToURL(new URLRequest(url)); | |
} | |
protected function applicationDeactivateHandler(event:Event):void | |
{ | |
NativeApplication.nativeApplication.removeEventListener(Event.DEACTIVATE, applicationDeactivateHandler); |
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
override protected function commitProperties():void | |
{ | |
if (dirtyDataFlag) | |
{ | |
trace("data changed, yo!"); | |
} | |
super.commitProperties(); | |
} |
OlderNewer