Jai’s Weblog – Tech, Security & Fun…

Tech, Security & Fun…

  • Jaibeer Malik

    Jaibeer Malik
  • View Jaibeer Malik's profile on LinkedIn
  • Subscribe

  • Feedburner

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 32 other followers

  • Archives

  • Categories

  • Stats

    • 412,782
  • Live Traffic

  • Advertisements

Tips&Tricks: Flex Cairngorm Sequence Command, sequencing events

Posted by Jai on August 18, 2009

Lets say you want to sequence two events and the second one is triggered based on some criteria. First event get list of all the list data and second event gets data for a user on selection. The criteria is that before getting the user data the total list data should be present.

import org.springextensions.actionscript.cairngorm.EventSequence;

var sequence:EventSequence = new EventSequence();
sequence.addSequenceEvent(GetUserDataEvent, [userId],[new Property(userModel,"users")]);

The addSequenceEvent method takes floowing parameters:
First – Event class name
Second – the event constructor parameter array
Third – The trigger criteria, once the criteria passes only then the second event is called.
For more details, see EventSequence.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: