Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.media.Sound;
- import flash.media.SoundChannel;
- import flash.events.MouseEvent;
- //disini saya menggunakan external mp3 miliknya tipex
- var okie_sound:Sound = new Sound(new URLRequest(“TIPEX – SAAT SAAT MENYEBALKAN.mp3″));
- var okie_channel:SoundChannel;
- //button play kita
- okie_play.addEventListener(MouseEvent.CLICK, play_musik);
- function play_musik(event:MouseEvent):void{
- okie_channel = okie_sound.play();
- }
Advertisement
Add Comment
Please, Sign In to add comment