Drew Shefman

Profile

Drew Shefman's Profile

Name Drew Shefman
About Me <p>I have been a professional multimedia developer since 96. In addition to running a Flex/Flash consulting and development company, I also serve as a Adobe Certified Instructor and a professor in Multimedia Communications at the University of Houston.</p>
Company Squaredi.com
Position Lead Software Architect and Owner
Interests <p>I really enjoy finding efficient solutions to communication problems. I consider my speciality is figuring out ways that multimedia content can meet the design and business goals, while still being scalable, maintainable, and inheritable.</p>
Recent Code /*Created by Drew Shefmandshefman@squaredi.comProblem: Often times in a project, the front end and backend are being developedsimultaneously. The architecture frequently places heavy use on the AsyncTokenas a way to handle these remote operations. Goal: I wanted a solution that would require minimal interference to migrate from an offlinetesting mode, to an online mode - once the backend was ready. Solution: The OfflineAsyncToken allows you to set the result property directly. So you can test your system with fake values. And then immediately swap out the offline version for the real AsyncToken.The offline version assumes that the result property is set near the instantiation of the Class. When responder's are added, it immediately calls the result method on that responder. */package com.squaredi.remoting.offline{ import mx.core.mx_internal; import mx.messaging.messages.IMessage; import mx.rpc.AsyncToken; import mx.rpc.IResponder; import mx.rpc.events.ResultEvent; public class OfflineAsyncToken extends AsyncToken { public function OfflineAsyncToken(message:IMessage) { super(message); } override public function addResponder(responder:IResponder):void { super.addResponder(responder); if (result != null) { responder.result(new ResultEvent(ResultEvent.RESULT,false,true,result)); } } public function set result(p:Object):void { var rEvt:ResultEvent = new ResultEvent(ResultEvent.RESULT,false,true,p); mx_internal::applyResult(rEvt); } }}

Stats

Last online 10/10/12

Groups

Drew Shefman is a member of the following Groups:

Community Managers


Private Group 1150 Members
 

Houston Adobe Users Group


Group - North America 113 Members
 

Houston ColdFusion Users Group


Group - North America 25 Members