    package com.bluefire.flexDemo.command
    {
        import com.adobe.cairngorm.commands.Command;
        import com.adobe.cairngorm.control.CairngormEvent;
        import com.adobe.cairngorm.view.ViewLocator;
        import com.bluefire.flexDemo.events.SlideshowNavClickEvent;
        import com.adobe.cairngorm.view.ViewLocator;
        import com.bluefire.flexDemo.view.MainViewHelper;
        import com.bluefire.flexDemo.model.DemoModelLocator;

        //in the newer versions of Cairngorm, the interface is ICommand
        public class SlideshowNavClickCommand implements Command
        {
            public function execute(e:CairngormEvent):void
            {
                var mainViewHelper:MainViewHelper = MainViewHelper(ViewLocator.getInstance().getViewHelper("mainViewHelper"));
                mainViewHelper.slideshowNavigation(SlideshowNavClickEvent(e).direction);
            }
        }
    }