• home
  • forum
  • my
  • kt
  • download
  • Sound in flash with Action Script

    Author: 2007-06-09 14:48:41 From:

    If we compare this tutorial with previous tutorial, this tutorial will show you how to create a sound in flash using Action Script. That's the difference - using Action Script

    Step 1

    Create a new flash document, Import the sound and create a button in an equivalent way like we have done in previous tutorial (see step 1-6 in the previous tutorial).





    Step 2

    Open the Library (Ctrl+L), right click on the "sound" that you have Imported (notify) and choose Linkage. Look at the picture below!



    Step 3

    In the Linkage Properties window select the Export for Action Script, and under Identifier: type SoundOn and click ok. Look at the picture below!



    Step 4

    Select the button (Ctrl+A), open the Action Script Panel (F9) and paste this script:

    on (press) {
    mysound = new Sound();
    mysound.attachSound("SoundOn");
    mysound.start();
    }

    Test your movie (Ctrl+Enter)

    We're done!

    Download source file (.fla)

    discuss this topic to forum

    relation tutorial

    No information

    Category

      3D (36)
      Math Physics (18)
      3rd Party (10)
      Navigation (70)
      Actionscripting (228)
      Optimization (17)
      Animation (166)
      Projector (11)
      Audio (54)
      Special Effects (170)
      Backend (26)
      Text Effects (92)
      Drawing (34)
      Tips and Techniques (58)
      Dynamic Content (38)
      Tricks (8)
      Games (114)
      Utilities (24)
      Getting Started (99)
      Video (59)
      Interactivity (48)
      Web Design (37)

    New

    Hot