SoulBlade Posted January 13, 2011 Posted January 13, 2011 Hi! I'm displaying an animated SWF file but unfortunally, the white background from the Flash file is visible. I want to see the spinning triangule but without the white background. I have been searching in this forum for an answer but without success. Is this a problem in my code or in the SWF file itself? Here's my code: expandcollapse popup#include <Constants.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <TABConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> HotKeySet('{ESC}', '_Close') Opt('GUIOnEventMode', 1) Global $hGUI, $FlashCtrl Global $oFlash Global $fError = False $hGUI = GUICreate("", 350, 200, -1, -1, $WS_POPUP) GUISetBkColor(0xFF00FF) GUISetBkColor(0xcccccc,$hGUI) GUICtrlCreatePic("background.bmp",0,0,350,200) $oFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash") $oAutoItError = ObjEvent("AutoIt.Error", "COMError") $FlashCtrl = GUICtrlCreateObj($oFlash, 100, 24, 140, 140) GUISetOnEvent($GUI_EVENT_CLOSE, '_Close') With $oFlash .Movie = @ScriptDir & '\file.swf' ;.bgcolor = "#aaaaaa" .ScaleMode = 1 .wmode = "transparent" .wmode="opaque" EndWith GUISetState(@SW_SHOW) While 1 Sleep(10) WEnd Func _Close() $oFlash.Stop() $oFlash = 0 GUIDelete() Exit EndFunc Func COMError() $fError = True EndFunc Also included is the compressed flash file and the background. Help is appreciated! background.bmpfile.rar
computergroove Posted January 13, 2011 Posted January 13, 2011 I would venture to guess that the SWF file was made with a solid background. I think you need to remake the SWF File. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
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