I'm trying to make a sound controller in actionscript 3. I
used to do this nicely in actionscript 2, but know it seems that
nothing works as in "the old days"...
I created a button and tried to add actionscript to it but it
doesn't let me :-(
How can i apply code to a button on flash CS3 to start and
stop a specific sound?
ActionScript 3.0 was designed for advanced Object-Oriented
programmers. Even though this approach is a lot more powerful, it
requires a lot of knowledge and re-learning. Like for example that
every on() event is not only deprecated in this version but
completely removed. So, as the same documentation says. If your
project is not a giant monster, there is no need to learn this
programming approach, which will take you a considerable time. You
can still export as Flash Player 9 to use its improvements but
select ActionScript 2.0 as the ActionScript version on the publish
Take into account that the object structure in ActionScript
3.0 was completely redesigned. So every proccess, from a sinple
event to movie clip creation has changed radically.
Read the Sound Class page in AS3 help. The sound class now
only provides a means for starting a sound. You must add a
SoundChannel object to your sound class to actually stop it. I'm
not sure what the sense was in this but it is none-the-less how it
is handled now in AS3
I have a similar problem. I need to create a CD with a menu
and several 1-2 min video clips (with audio that needs to stay in
sync). I also need a "return to menu" button under each video. When
I use ActionScript 2.0 and attempt to test with .FLV files I get
WARNING: The component 'fl.video.FLVPlayback' requires
When I use ActionScript 3.0 and attempt to test I get this
WARNING: Actions on button or MovieClip instances are not
supported in ActionScript 3.0. All scripts on object instances will
Make sure that your FLA is a Flash (Actionscript 2) document.
Also make sure you are calling on the proper package for an AS2
document. From the looks of the errors, your FLA is an AS3 document
but I can't be positive without looking at the actual FLA
Sorry, I'm not sure that I understand your response. One of
the error message occurred when I saved as an AS2 project and one
was when I saved as an AS3 project. Also, I'm not sure what you
mean when you say "calling on the right package"