$oFlash = ObjCreate("ShockwaveFlash.ShockwaveFlash") $oAutoItError = ObjEvent("AutoIt.Error", "COMError") $FlashCtrl = GUICtrlCreateObj($oFlash, -1, 0, 852, 600) With $oFlash .Movie = @scriptDir & '\movie.swf' .bgcolor = "#aaaaaa" .ScaleMode = 0 .wmode = "transparent" .wmode = "opaque" .zoom(50) .Menu = False .AlignMode = 0 EndWith
D:\Projects\SWF Movie.au3 (86) : ==> Only Object-type variables allowed in a "With" statement.:
With ^ ERROR
but if the first GUI is closed, the second never works again and i receive the same message up there, untill i restart Windows, i thought that the object is still created because when i run FlashPlayer Installer i get this message: (Attached with the topic down there).
but im sure the GUI process is not running, and there is no other flash objects in any windows are running, i found somewhere.. that making $oFlash = 0 will delete the object, so i put this command before the exiting command, but nothing changed, and i'm sure there is no errors with my simple script, any help please?