adobe flash cs5 on demand part 51

Sử dụng âm thanh với ActionScript Âm thanh là một động lực rất lớn. Ví dụ, một đoạn cụ thể của âm nhạc có thể làm cho bạn hạnh phúc, hoặc nó có thể làm cho bạn buồn. Ngoài ra, âm thanh có thể kéo ra khỏi những kỷ niệm thời thơ ấu và khuấy động cảm xúc. | Using Audio with ActionScript Sound is a great motivator. For example a particular piece of music can make you happy or it can make you sad. In addition sounds can pull out childhood memories and stir emotions. Sound is a powerful tool however different people react differently to sounds therefore it s important that you think carefully about the sounds you add to your movies. It s equally important to understand how you can control your movies using using ActionScript code or ActionScript Behaviors in ActionScript . Load a Sound from the Library with ActionScript Create or open a Flash document ActionScript . Click the Window menu click Library to open the Library panel and then select an audio file from the available Library items. Right-click Win or Commandclick Mac the audio sound and then click Properties. Click Advanced if necessary. Enter a distinctive name for the Identifier field or use the default. Select the Export For ActionScript check box. Leave the other fields at their default values and then click OK. Click Frame 1 in a layer. Click the Window menu and then click Actions. Type the ActionScript code shown in the illustration Click the Control menu point to Test Movie and then click Test. O A 314 Chapter 12 Load a Sound from the Library with an ActionScript Behavior Create or open a Flash document ActionScript . Click the Window menu click Library to open the Library panel and then select an audio file from the available Library items. Click the Library Options button and then click Properties. Click Advanced if necessary. Select the Export For ActionScript check box. Enter a distinctive name for the Identifier field or use the default. Leave the other fields at their default values and then click OK. Click the Window menu and then click Behaviors to open the Behaviors panel. Select a button object on the Stage or Timeline keyframe. Click the plus sign located in the upper-left portion of the Behaviors panel point to Sound and then

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
257    79    3    14-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.