MePHiTiC Posted May 21, 2008 Share Posted May 21, 2008 (edited) I've got an swf that I'm trying to play and have the below code. The only problem is there is a border around the flash. It's a white border that I can't figure out how to change the color of. I'd like it to be #831518 if at all possible. I've tried HTML code, gui color controls, nothing seems to get it ... Can anyone help me out please? expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GUIConstants.au3> #include <ie.au3> HotKeySet("{ESC}", "Remove") $Form1 = GUICreate("Cimarron Casino", @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_SYSMENU,$WS_POPUPWINDOW,$WS_BORDER)) $Obj = _IECreateEmbedded ( ) $browser = GUICtrlCreateObj($Obj, -1, -1, @DesktopWidth, @DesktopHeight) GUICtrlSetResizing(-1,$GUI_DOCKBORDERS) _IENavigate ($Obj, 'about:blank') $oDoc = _IEDocGetObj ($Obj) $oDoc.body.style.overflow = "auto" GUISetState(@SW_SHOW) $flash1 = ("C:\WINDOWS\Help\Tours\mmTour\segment1.swf") $sHTML = '<embed id=flashy src="'&$flash1&'" ' $sHTML &= 'quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ' $sHTML &= 'type="application/x-shockwave-flash" ' $sHTML &= 'width="100%" height="100%"></embed>' _IEBodyWriteHTML ($Obj, $sHTML) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Remove () GUIDelete() Exit 0 EndFunc Thanks, MePH Edited May 21, 2008 by MePHiTiC Link to comment Share on other sites More sharing options...
ProgAndy Posted May 21, 2008 Share Posted May 21, 2008 Try this: $sHTML = '<html><head></head><body style="background-color: #831518"><embed id=flashy src="'&$flash1&'" ' $sHTML &= 'quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ' $sHTML &= 'type="application/x-shockwave-flash" ' $sHTML &= 'width="100%" height="100%"></embed></body></html>' _IEDocWriteHTML ($Obj, $sHTML) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
MePHiTiC Posted May 21, 2008 Author Share Posted May 21, 2008 Try this:$sHTML = '<html><head></head><body style="background-color: #831518"><embed id=flashy src="'&$flash1&'" ' $sHTML &= 'quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ' $sHTML &= 'type="application/x-shockwave-flash" ' $sHTML &= 'width="100%" height="100%"></embed></body></html>' _IEDocWriteHTML ($Obj, $sHTML)ProgAndy,Thanks! ... That worked for the most part. There is still a thin black border around the swf that I can't figure out. Your fix did handle the white border however, thank you!MePH Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now