Part II: Server Side, JavaScript, and Flash: Oh My!
330
Some events don ??™ t have the usual signature Void - > Void (a function that has no arguments and
returns nothing) but they pass a value. The LoadVars.onLoad() for example passes a Boolean
argument stating if the loading communication has been successful or has failed for some reason.
The method as described earlier is not the only one to provide events; the flash.MovieClipLoader for
example is a class used to monitor the loading progress of a target movie clip. The events are defined in
MovieClipLoader instance but are effectively triggered by the target movie clip. Handlers in this case
must be registered on the MovieClipLoader instance using the addListener() method. The
MovieClipLoader was introduced in version 7.
Events in Flash 9
The event model in Flash 9 is quite a lot more sophisticated than in the previous versions. This
sophistication opens possibilities harder to obtain otherwise, but it requires a little more attention.
The dispatcher class, the class that provides events, has to implement the flash.
Pages:
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644