    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.TreeNavClickEvent;
        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 TreeNavClickCommand implements Command
        {
            public function execute(e:CairngormEvent):void
            {
                var slideNum:Number = parseInt(TreeNavClickEvent(e).whichItem.@slide);
                trace("TreeNavClickCommand " + TreeNavClickEvent(e).whichItem.@slide);
                if(slideNum)
                {
                    var mainViewHelper:MainViewHelper = MainViewHelper(ViewLocator.getInstance().getViewHelper("mainViewHelper"));
                    mainViewHelper.slideshowNavigation("slideNum",slideNum);
                }

            }
        }
    }