View NetConnectionServiceTest.as
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 asunit.framework.TestCase; | |
import com.newtriks.restricted.modules.streamingservicemodule.api.signals.NetConnectionSuccessful; | |
import com.newtriks.restricted.shell.api.signals.RecorderError; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.IEventDispatcher; |
View gist:1297937
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 class ProfileDisplayMediatorsCommand extends SimpleCommand implements ICommand | |
{ | |
override public function execute( note:INotification ):void | |
{ | |
var profileDisplay:ProfileDisplay = note.getBody() as ProfileDisplay; | |
facade.registerMediator( new ProfileDisplayMediator( profileDisplay ) ); | |
facade.registerMediator( new BalanceDisplayMediator( profileDisplay.balanceComponent ) ); | |
} |
View RemoteDelegate.as
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
/* | |
RemoteDelegate Class | |
Copyright (c) 2009 Simon Bailey <simon@newtriks.com> | |
Your reuse is governed by the Creative Commons Attribution 3.0 License | |
*/ | |
package | |
{ | |
import mx.rpc.AsyncToken; | |
import mx.rpc.IResponder; | |
import mx.rpc.remoting.RemoteObject; |
View build.properties
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
###################################### | |
## PROJECT INFORMATION | |
###################################### | |
## Developer info | |
AUTHOR = Simon Bailey | |
PROJECT.OWNER = Newtriks | |
PROJECT.OWNER.URL = http://www.newtriks.com | |
PROJECT.FULLNAME = Flex Ant Tasks Example | |
PROJECT.VERSION = 1.0.0 alpha |
View build.xml
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
<?xml version="1.0"?> | |
<!-- ====================================================================== | |
Flex ANT Build Script | |
- Deletes build and template directory | |
- Creates build, assets and templates directories | |
- Compiles release and debug swf's | |
- Connects to svn (Adobe Flex Opensource) | |
- Svn checkout of latest Flex SDK > templates > SWFObject | |
- Creates html wrappers for release and debug using SWFObject template |
View CustomList.as
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.DisplayObject; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.geom.Point; | |
import mx.controls.List; | |
import mx.controls.listClasses.ListRowInfo; | |
import mx.core.mx_internal; |
View ListExtraRowExample.mxml
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
<?xml version="1.0"?> | |
<!-- Simple example to demonstrate the List Control --> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#ffffff" backgroundGradientColors="[#ffffff,#ffffff]" xmlns:local="*" viewSourceURL="srcview/index.html"> | |
<mx:Script> | |
<![CDATA[ | |
import mx.collections.ArrayCollection; | |
[Bindable] | |
public var selectedItem:Object; | |
View actionscript.sublime-build
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
Show hidden characters
{ | |
"cmd": ["/Users/newtriks/Library/Plugins/sdks/flex_sdk_4.6.0.23201B/bin/mxmlc", | |
"$file", | |
"-static-link-runtime-shared-libraries=true"], | |
"file_regex": "(.*)[(](\\d+)[)]:(?: col: (?:\\d+))? *Error: (.*)", | |
"selector": "source.actionscript", | |
"variants": [ | |
{ "cmd": ["open ${file_path}/${file_base_name}.swf"], | |
"shell": true, | |
"name": "Run" |
View version.sh
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
#!/bin/bash | |
REVISION=$(heroku config:get REVISION) | |
echo " info: heroku REVISION: $REVISION" | |
function version_release | |
{ | |
echo -e " info: writing: '\$tagged_release_version = \"$1\"' to version_helper.rb" | |
echo -e "\$tagged_release_version = \"$1\"" > config/initializers/version_helper.rb | |
git add config/initializers/version_helper.rb | |
git commit -am "Updating version_helper with latest tagged version $1" | |
echo " info: deployed version $REVISION is not yet tagged; tagging now as $1" |
View JavaScript.sublime-build
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
{ | |
"cmd": ["/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc","$file"], | |
"selector": "source.js" | |
} |