Daniel Harfleet

Delivering user-centric applications on the Adobe Flash Platform using Flex and AIR

.doAction( ) – How to mock a function in AsMock that returns void

leave a comment »

Using AsMock to mock a result being returned from a function is quite common, however, how would you mock behavior on a function which returns void ?

Read the rest of this entry »

Written by dharfleet

July 17, 2012 at 12:26

Eclipse External Tools

leave a comment »

Handy post from Ed about configuring external tool access from Eclipse …

http://edeustace.wordpress.com/2012/03/23/open-containing-folder-in-eclipse-for-selected-resource-osx/

Written by dharfleet

June 14, 2012 at 15:23

Posted in Flash Builder, Tools

Translating Force.com Rest API Date to ActionScript Date

leave a comment »

Recently I have been calling the Force.com Rest API from ActionsScript in an AIR project. When translating my entity objects, I found the need to translate the date as it is represented in the Rest API, into an ActionScript date instance and vice versa.

The Rest API uses ISO 8601 Format.

Here is the code:

Convert from Rest API to ActionScript:

 

Convert from ActionScript to the Rest API:

The full code can be found here

and its unit test

Written by dharfleet

June 12, 2012 at 13:54

MAX 2011 Sessions

leave a comment »

The MAX 2011 Sessions are now available on Adobe TV http://tv.adobe.com/channel/max/max-2011/

Written by dharfleet

October 17, 2011 at 12:35

Posted in Uncategorized

Tagged with

Parsley Roadmap

leave a comment »

Looks like there are some big changes coming for Parsley 3 http://www.spicefactory.org/parsley/docs/roadmap/

Written by dharfleet

September 21, 2011 at 11:08

Posted in Uncategorized

Tagged with , , , ,

Adobe Developer Week Sessions

with 2 comments

If like me, you were unable to attend the Adobe Developer Week Sessions, you can now watch the recordings here.

Read the rest of this entry »

Written by dharfleet

June 27, 2011 at 08:54

AsyncListView

leave a comment »

Post about AsyncListView collection wrapper class on James Ward’s blog here. Useful for dealing with ItemPending errors.

Written by dharfleet

December 13, 2010 at 13:21

Posted in LCDS

Tagged with , , , ,