5. Decide on an instance name, such as (Adult web hosting)
5. Decide on an instance name, such as mySound, and type this name and an equal sign in the Expression text box at the top of the Actions panel. The text in the Expression text box should be mySound = new Sound(); This step creates an instance of a new sound object with the name mySound. 6. Click in the Script pane of the Actions panel on the line below the line you just created (in our example, mySound = new Sound) to start a new line of code. 7. In the left pane of the Actions panel, click the ActionScript 2.0 Classes category, then the Media category, then the Sound category, then the Methods category, and then double-click loadSound. The text in the Script pane should now be mySound = new Sound(); not_yet_set.loadSound(); 8. Enter the sound s instance name (such as mySound) in the Object text box at the top of the Actions panel. Enter the URL (enclosed in quotation marks) of an MP3 file in the URL text box. In the isStreaming text field, enter the word true. This step signifies that it s true you want to stream the sound. (You hear streaming audio as it s being sent over the Web to you. You don t have to download the entire audio file before you can start hearing it.) Now your code in the lower-right pane of the Actions panel should look like this (except with your own URL): mySound = new Sound(); mySound.loadSound( http://www.example.com/fun-sound.mp3 , true); 9. Choose Control.Test Movie and enjoy the music. 334 Part VI: The Part of Tens
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.