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.net.NetConnection; | |
import flash.net.Responder; | |
import RemotingEvent; | |
public class RemotingService extends NetConnection { | |
private var _service:NetConnection; | |
private var _Url:String; |
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
var _remoting:RemotingService = new RemotingService('http://www.yourdomain.com','com.remoting.RemotingService'); | |
_remoting.addEventListener(RemotingEvent.RESULT,DataReturn); | |
_remoting.init('FUNCTION_ON_CFC','ANY ARGUMENTS'); |
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
<cffunction name="mergeSort" access="public" output="false" returntype="array"> | |
<cfargument name="array" type="array" required="true" default="" /> | |
<cfargument name="sortkey" type="string" required="true" default="" /> | |
<cfset var arr = arguments.array /> | |
<cfset var key = arguments.sortkey /> | |
<cfscript> | |
var leftArray = ArrayNew( 1 ); | |
var rightArray = ArrayNew( 1 ); |
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
<cfset sortedArray = mergeSort(arrayToSort,'key') /> |
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
<cfcomponent name="RequiredFields" extends="coldbox.system.plugin" output="false"> | |
<cffunction name="init" access="public" returntype="RequiredFields" output="false"> | |
<cfargument name="controller" type="any" required="true"> | |
<cfset super.Init(arguments.controller) /> | |
<cfset setpluginName("Required Fields Plugin")> | |
<cfset setpluginVersion("1.0")> | |
<cfset setpluginDescription("This plugin checks for form validations and checks for completed fields")> | |
<cfreturn this> | |
</cffunction> |
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
<cfset var _required = 'name,email,comments' /> | |
<cfset var _result = getMyPlugin('requiredFields').validate(_required,event.getCollection()) /> |
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"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:view="com.progressbar.views.*" xmlns:maps="com.progressbar.maps.*"> | |
<maps:MainEventMap /> | |
<view:ProgressBar /> | |
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"?> | |
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="93" headerHeight="16" xmlns:view="com.progressbar.views.*"> | |
<mx:Script> | |
<![CDATA[ | |
import com.progressbar.views.model.ProgressBarModel; | |
[Bindable] |
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"?> | |
<EventMap xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="http://mate.asfusion.com/"> | |
<mx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; | |
import com.progressbar.events.*; | |
import com.progressbar.managers.*; | |
import com.progressbar.views.model.*; |
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.progressbar.views.model { | |
import com.progressbar.events.ProgressBarEvent; | |
import com.progressbar.views.ProgressBar; | |
import flash.events.IEventDispatcher; | |
[Bindable] | |
public class ProgressBarModel { |