Instead of adding/mapping commands in AppController
's constructor. Declare it in initialize()
function. Example is given below for your reference.
public class AppController extends FrontController
{
public function AppController()
{
super();
}
public function initialize():void
{
this.addCommand(SliderEvent.BUILD, SliderBuildCommand);
this.addCommand(SliderEvent.TRANSITION, SliderTransitionCommand);
}
}