444444444444

Hình ảnh
Câu1: Đâu là năm sinh năm mất của tác giả Trần Hữu Thung? 2023 1923 - 1998 1923 - 1997 1923 - 1999 Phương pháp giải : Đọc phần giới thiệu trang 15 hoặc tham khảo qua sách báo, internet Lời giải chi tiết : Trần Hữu Thung sinh năm 1923, mất năm 1999 Câu 2: Tác giả Trần Hữu Thung quê ở đâu? Thanh Hóa Nghệ An Thanh Hóa Thừa Thiên - Huế Phương pháp giải : Đọc phần giới thiệu trang 15 hoặc tham khảo qua sách báo, internet Lời giải chi tiết : Trần Hữu Thung quê ở Diễn Minh, Diễn Châu, Nghệ An Câu 3: Trần Hữu Thung sáng tác trong thời kì kháng chiến chống? Đế quốc Mĩ Phát xít Nhật Quân Nguyên-Mông Thực dân Pháp Câu 4: Trần Hữu Thung xuất thân trong gia đình thuộc tầng lớp nào? Qúy tộc Tri thức nghèo Nho học Nông dân Câu 5: Con hãy chọn những đáp án đúng (Được chọn nhiều đáp án) Đặc điểm thơ của Trần Hữu Thung như thế nào? Mộc mạc, dân dã. Chân chấ...

Sound Controlled Switch

Do you find any way to control the sound included in your movie? You can first import sound to the timeline of movie clip and then control the sound by controlling the movie clip. Another widely used way is to use ActionScript to bind sound in the library. I will focus on showing you this method. Take earphotos and control the music. 

 Link SWF: http://www.sothink.com/images/fck/flash/SWFQuicker/soundCtrl.swf

Series: SWF Quicker 2.0

1. Launch SWF Quicker and import a sound file.


2. Right-click the sound file in library and select Linkage in the pop-up box. Set Identifier as sound.


3. Use text tool to write "sound stop" on the canvas and set the Var as btnText. Convert it to button, enter btnSound as instance name in properties panel.


4. Add a dynamic text block, which shows current play position information on the canvas and set its Var as curPos.


5. Add following ActionScript in frame 1 of main movie.
Code:
ss=new Sound();       //cods for bound sound;
ss.attachSound("sound");
ss.start();
soundPlaying = true;//set current play state;
function onEnterFrame() {
   curPos = ss.position+"ms";   //take millisecond as unit to show current sound position;
}

6. Add following ActionScript in button

Code:
on (release) {
   if (soundPlaying == true) {
       ss.stop();
       _root.soundPos=ss.position;//write current playback position
       this.btnText = "Sound Start";
       soundPlaying = false;
   }else{
       ss.start(_root.soundPos/1000);//continue playing from pause position;
       this.btnText = "Sound Stop";
       soundPlaying = true;
   }
}


See more details, click soundCtrl.rar (695.98 KB) to download source file. 


Nhận xét

Bài đăng phổ biến từ blog này

How to Edit SWF file

Create a Button

Edit texts - Flash Decompiler Trillix for Windows