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.
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
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.