Howdy all,
I need some Flash help. I am fairly proficient at AS 3 with Flex, but am
not sure how I would do this in Flash. I am going to create an Audio
Library/Control object for our Flash developers. They are creating several SWFs
in Flash that need to load into a Flex Presentation system that I have
developed.
Here is what I am wondering: How do I override the stop, gotoAndStop, and
gotoAndPlay methods at the root level of a Flash FLA? The docs do not show any
events being generated by these calls, so my only recourse is to attempt to
override them so when Flex calls stop on the loaded SWF, the Audio Control
object knows to stop all playing sounds. SoundMixer.stopAll() is not an option
at this point for a couple of reasons. In Flex, I would simply extend whatever
object (say Movieclip) and use that instead; however, I don't think this is
possible at the root level of Flash. Simply putting the override statements in
the timeline generates an error.
Any help is greatly appreciated. Thanks.
Raymond Basque - 30 Jul 2008 17:00 GMT
Look up "Declare a document class" in Flash help. Should be just what you
need.
windWidget - 30 Jul 2008 20:04 GMT
Thanks a lot, Raymond! I think it is the perfect solution for my situation.