Skip to content

Instantly share code, notes, and snippets.

@jonathantorres
Created November 25, 2011 23:34
Show Gist options
  • Save jonathantorres/1394668 to your computer and use it in GitHub Desktop.
Save jonathantorres/1394668 to your computer and use it in GitHub Desktop.
package com.examples.navigationmodel.controller
{
import com.examples.navigationmodel.model.NavigationModel;
import org.robotlegs.mvcs.SignalCommand;
import flash.display.Sprite;
/**
* @author Jonathan Torres
*/
public class SectionChangeCommand extends SignalCommand
{
[Inject]
public var section:Sprite;
[Inject]
public var navigationModel:NavigationModel;
public function SectionChangeCommand()
{
super();
}
override public function execute():void
{
navigationModel.changeTo = section;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment