DISQUS

DISQUS Hello! Vivisecting Media Conversations is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

VivMedia Code: Selection Controller

Started by James · 1 year ago

With the previous release of version 0.02 of the code base I added a new class called the SelectionController that enables you to treat items that implement the ISelectable interface as a selection group. As promised, this is the tutorial/indepth examples of the SelectionController and how to use it within your applications.

Overview
The SelectionController allows [...] ... Continue reading »

4 comments

  • This is a great pattern. It's frustrating to me that with as long as web-tech has been around and as long as developers have been hacking form elements, using non-form elements *as* form elements, and otherwise completely thumbing our noses at the way the system(s) have been designed, they haven't redesigned the system. You would think that this kind of functionality should be a class of behavior that can be assigned to *any* element rather than one defined as a "radio button".
  • Hey thanks for the code, ive been looking for something like this for a while
    I would really appreciate it if you could post the fla files for this example you just did , im getting errors when i run the code posted above.

    error: 1017 the definition of base class Button was not found and a few other
  • Ok I cleared up most of the errors, but im confused. is this code for Flash CS3 or Flex?
    because it doesnt seem to work on flash CS3
  • The example code above is Flex but the SelectionController does work with CS3. I whipped up a quick example for you and posted it here:

    http://blog.vivisectingmedia.com/examples/Selec...

    I didn't get a chance to comment the code since this is a quick and dirty example. What is going on is that you have a Document class that generates two SelectableItems, places the items on the stage and then adds them to the SelectionController.

    The items themselves are responsible for tracking their own click event and updating their selection. Check out the code and let me know if this helps explain how to use the SelectionController in CS3.

Add New Comment

Returning? Login