There are a couple of ways that you can do it.  1) Have your command extend SequenceCommand and then in the command's constructor call super(nextEvent). or 2) You can dynamically assign the nextEvent by passing it to the command.  This is the way I prefer, since it allows you to build different chains of commands.  To aide this I built a class called SequenceEvent:

    public class SequenceEvent extends CairngormEvent
    {
        public var nextEvent : CairngormEvent;
       
        public function SequenceEvent ( eventType:String, nextEvent : CairngormEvent = null )
        {
            super( eventType );           
            this.nextEvent = nextEvent;
        }
    } __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to