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
[EventHandler(event="DeviceEvent.LOAD_SUMMARY",properties="device,filters,forceLoad")] | |
/** | |
* Here is an example of Parallel chaining. Developers should not that the workflow() method returns | |
* IAsynchronousOperation to allow workflow() to be itself chained with other eventHandlers. | |
* | |
* - DeviceEvent extends AsynchronousEvent. | |
* - FunctionChainStep is also available | |
* | |
* Here we get Device Snapshot information (includes upTimes and durationInState) | |
*/ |
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
/** | |
* Add Popup Behavior to any Flex UI! | |
* | |
* 1) Want to show UI Components in Popup? | |
* 2) Want to use show/hide effects, autoClose, modality? | |
* 3) Want to use anchor constraints (top, right, etc.) to position the popup anywhere relative to ANY parent? | |
* 4) Want to position the popup relative to the mouse or any other specific location? | |
* 5) Want to cache the popup content for super-fast reuse ? | |
* 6) Want it super easy... with no need to worry about events or memory cleanup? | |
* |
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
<?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' }; | |