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 control | |
{ | |
public class AlertsController | |
{ | |
[Inject( "alertsDelegate" )] | |
public var delegate:CacheEnabledDelegate; | |
[Inject] | |
public var serviceHelper:IServiceHelper; | |
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" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:swiz="http://swiz.swizframework.org" | |
minWidth="955" minHeight="600"> | |
<!-- | |
When using Swiz with dynamic content shown in popup windows | |
it is best to manually `register` the content instance as | |
a new `bean` with Swiz: easily done with BeanEvent.SET_UP_BEAN. |
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" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:swiz="http://swiz.swizframework.org" | |
minWidth="955" minHeight="600" > | |
<fx:Script> | |
<![CDATA[ | |
import com.codecatalyst.factory.ClassFactory; | |
import mx.effects.Fade; |
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 Something | |
{ | |
public function doSomething(index:int) : void | |
{ | |
// Async closure for timer completion event | |
function onComplete_doSomething(evt:TimerEvent) : void | |
{ | |
// Always clean up 1st, then notify listeners | |
timer.removeEventListener(TimerEvent.TIMER, onComplete_Timer ); | |
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"?> | |
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> | |
<cross-domain-policy> | |
<site-control permitted-cross-domain-policies="all"/> | |
<allow-access-from domain="*" secure="false"/> | |
<allow-http-request-headers-from domain="*" headers="*" secure="false"/> | |
</cross-domain-policy> |
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
<Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008" | |
scaleGridLeft="0" scaleGridTop="0" scaleGridRight="0" scaleGridBottom="0"> | |
<Rect x="0" y="0" width="1" height="1"> | |
<fill> | |
<SolidColor color="#FFFFFF" alpha="0" /> | |
</fill> | |
</Rect> | |
</Graphic> |
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 ext.swizframework.utils.chain | |
{ | |
import flash.events.TimerEvent; | |
import flash.utils.Timer; | |
import org.swizframework.utils.chain.BaseChainStep; | |
import org.swizframework.utils.chain.IAutonomousChainStep; | |
public class DelayChainStep extends BaseChainStep implements IAutonomousChainStep | |
{ |
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
/** | |
* Use regular expressions to easily replace tokens within specific patterns | |
* Here we are using SWFAddress with deep linking to update the browser fragment | |
*/ | |
var url1 : String = "http://www.test.com/ria.html#/user/100083?view=13432&filter=all&layout=horizontal" | |
var url2 : String = "http://www.test.com/ria.html#/user/100083&filter=all/edit" | |
// Here we want to update [with filter value above] only the section filter=xxx; | |
// without affecting any other part of the fragment... |
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
candidates.where { n => | |
!followers.any { f => f.user.id != n.user.id } && | |
!followedBefore.any { f => f.user.id != n.user.id } | |
} | |
.where { it => /Flash | ActionScript | Adobe/.test(it.bio) } | |
.forEach { m => // TODO: do something with 'm' }; | |
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
/** | |
* Below is excerpted code that was improved to properly use Deferreds, construction, and $.when() | |
* | |
* @see https://github.com/rwldrn/adventure/blob/master/src/adventure.js | |
**/ | |
init: function( options ) { | |
// Program references | |
var |