Sign in to follow this  
Followers 0
iamtheky

start a flash video muted

1 post in this topic

just a standard object. I would like to start this muted. I have seen that flashvars in the browser accepts "mute = True". However, I cannot get this to function. Thanks.

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <array.au3>

Opt("GUIOnEventMode", 1)
Opt("GUICloseOnESC", 1)

$width = 500
$height = 300
$xCenter = (@desktopwidth / 2) - ($width / 2)
$yCenter = (@DesktopHeight / 2) - ($height / 2)


Global $Object = ObjCreate("SAPI.SpVoice")
Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash.10")
Global $flash = GUICreate("Videos", $width , $height, $xCenter , $yCenter, BitOR($WS_POPUP, $WS_CLIPSIBLINGS , $WS_CLIPCHILDREN , $WS_EX_TOPMOST))

    GUICtrlCreateObj($oRP, -1, -1, $width, $height)

                    With $oRP
                    .bgcolor = "#000000"
                    .Movie = "c:\test.swf"
                    .ScaleMode = 1
                    .Loop = 'True'
                    .wmode = "transparent"
                    .FlashVars = ""
                    .menu = 'True'
                EndWith

                GuiSetState ()

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0