|
-
How to do AS3 code for making the flvPlayback component mute without a skin
Hello there,
I've been struggling for days, and I had to have a project finished by just about this moment.
It is real simple, so I am probably real dumb..... but here is the deal:
* little banner 336x280
* I have a 2mb .FLV video embedded and synchonized in the timeline (which I know is not ideal)
* I only need a MUTE button to mute and unmute the sounds of the video at will
* also, the video is 52 seconds and must be looping constantly, but if you choose to MUTE the sound it should not go back on if the video (SWF) restarts
One way that worked for me to mute is the code below, but can't get it back on then:
import flash.media.SoundMixer;
import flash.events.MouseEvent;
audio_btn.addEventListener(MouseEvent.CLICK, btnMute);
function btnMute(e:MouseEvent):void{
SoundMixer.stopAll();
}
Any help within like yesterday would have given you 1000 Euro's, but anything within now and very soon will be celebrated at my place with a cold beer and EXTREMELY appreciated !!!
Best regards,
<( NOOB )>
JAMES, from Holland......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|