Flash instance: MP3 new version procedure

Source: Internet
Author: User
The animation effect is as follows:

Click here to download the source file

This flash is mainly to practice the data control for the flash itself, if the practice of this to everyone after the flash game has a lot of help the input text basket Remember is the path on the computer, and not on the network, if you want to connect the network, you can modify

First: Draw a MP3 player's skin first, of course, if you feel trouble here, you can directly copy a movie in the past to center it, to remember that the first layer of skin every time at the bottom. Then you can set it up, and you can stop it later.

Second: To start making playlists, create a new layer to make it above the skin layer. Name "Playlist" and then select the Text Tool and drag out a text basket, remember, to enter text for. Text size 12 can be, font default on it.

Third: Start making the button and enter it in the first one.
On (release) {
Stop playback of all current sounds
S.stop ();
s = new Sound ();
S.loadsound (user_01, false);
A = S.loadsound (user_01, false);
Play the sound from the beginning and loop it three times
S.start (0, 3);
Where the variable user_01 is written based on a different number in the following button.
Four, now start making the core of this MP3. First make two buttons, double-click the button to enter the editor, and then build a layer, such as figure. At the top of the pointer through the chastity point, create a static text, where you enter the "Save list." The second button enters the delete list as a word.
Enter in the first button
On (Press) {
Setting the data for the shared object
local_data.data.user_01 = user_01;
local_data.data.user_02 = user_02;
local_data.data.user_03 = user_03;
Local_data.data.user_04 = user_04;
local_data.data.user_05 = user_05;
local_data.data.user_06 = user_06;
local_data.data.user_07 = user_07;
local_data.data.user_08 = user_08;
local_data.data.user_09 = user_09;
Local_data.data.user_10 = user_10;
Local_data.data.user_11 = User_11;
Write the data immediately
Local_data.flush ();
}
Enter in the top layer of the playback column
Save_btn.onrelease=function () {
Assign value to Sharedobject
local_data.data.user_01 = user_01;
local_data.data.user_02 = user_02;
local_data.data.user_03 = user_03;
Local_data.data.user_04 = user_04;
local_data.data.user_05 = user_05;
local_data.data.user_06 = user_06;
local_data.data.user_07 = user_07;
local_data.data.user_08 = user_08;
local_data.data.user_09 = user_09;
Local_data.data.user_10 = user_10;
Local_data.data.user_11 = User_11;
Write Data now
Local_data.flush ();
}
Delete_btn.onrelease=function () {
Clears the data in the Sharedobject, where Delete_btn is another way to use the button
local_data.data.user_01 = "";
local_data.data.user_02 = "";
local_data.data.user_03 = "";
Local_data.data.user_04 = "";
local_data.data.user_05 = "";
local_data.data.user_06 = "";
local_data.data.user_07 = "";
local_data.data.user_08 = "";
local_data.data.user_09 = "";
Local_data.data.user_10 = "";
Local_data.data.user_11 = "";
Write immediate data
Local_data.flush ();
Clear Text Basket Data
user_01 = "";
user_02 = "";
user_03 = "";
User_04 = "";
user_05 = "";
user_06 = "";
user_07 = "";
user_08 = "";
user_09 = "";
User_10 = "";
User_11 = "";
Volume control and equalization control can be directly copied past, and some special effects, you can study their own slowly, mainly component copy. What do not know can QQ contact: 254986824



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.