Jump to content

[SOLVED :P] Make my SWF movie have a transparent background?


Recommended Posts

Hello big-minds Posted Image

I have this simple SWF example:

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

$xload = GUICreate("FLASH", 800, 500)
$oFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$FlashCtrl = GUICtrlCreateObj($oFlash, 200, 100, 400, 250)
GUISetState(@SW_SHOW)
$oFlash.Movie = @ScriptDir & "\loading.swf"
$oFlash.BGColor = "0x99B9E3"
$oFlash.Menu = False
$oFlash.Play


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

I want to make it transparent is this available here?

This is my SWF file: loading.swf.zip

Thanx in advanced. Posted Image

----------------------------------------------------------

This question have been asked many times, Here is the solution:

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

$GUI = GUICreate("FLASH", 300, 400, -1, -1, -1, $WS_EX_LAYERED)
GUISetBkColor(0xABCDEF)
GUICtrlCreateLabel("My Transparent Flash Object (You can drag me from here)", 10, 10, 200, 30, -1, $GUI_WS_EX_PARENTDRAG)
$oFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$FlashCtrl = GUICtrlCreateObj($oFlash, 0, 100, 400, 250)
$oFlash.Movie = @ScriptDir & "\loading.swf"
$oFlash.BGColor = "#ABCDEF"
$oFlash.Menu = False
$oFlash.Play
$oFlash.wmode = "transparent"
_WinAPI_SetLayeredWindowAttributes($GUI, 0xABCDEF, 255)
GUISetState()

While 1
If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit

WEnd

Posted Image

ENJOY big-minds :thumbsdown:

Edited by SYRAU3
Link to comment
Share on other sites

hi

can you source and file update

but dont work xp ,your sistem? win7?

okey

all file update please

maybe

your user32.dll send to me

adobe versiyon?

and your autoit version?

ı need it

thank you now

Edited by mesale0077
Link to comment
Share on other sites

@mesale0077

I liked my broken English when i saw yours!

i'm sorry the flash transparency is not working on Windows XP and don't ask me why, ask the silent big-minds.

i'm not sure i understood what did you mean about "file update"?!

the source code is up there ^ !!

and my user32.dll belongs to WINDOWS7 Ultimate Version 32bit Build 7601.

i'm using FlashPayer10.3_b1_ActiveX_030811

AutoIt version is 3.3.6.1

i'm wearing a black pajama and a blue shirt.

i hope that helped you boss.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...