MATISZON Posted May 13, 2011 Share Posted May 13, 2011 (edited) Hey. $Form1 = GUICreate("any txt", 700, 500, 211, 130) $Obj1 = ObjCreate("ShockwaveFlash.ShockwaveFlash.10") $Obj1_ctrl = GUICtrlCreateObj($Obj1, 0, 0, 700, 500) GUISetState(@SW_SHOW) $Obj1.Movie = "any" $Obj1.Play(False); = The requested action with this object has failed.: Please help me Edited May 13, 2011 by MATISZON [size="3"][font="Arial Black"]I'm from the Polish do not as well know how English[/font][/size] Link to comment Share on other sites More sharing options...
wakillon Posted May 13, 2011 Share Posted May 13, 2011 (edited) Try like this #include <GUIConstants.au3> $Form1 = GUICreate("any txt", 700, 540, 211, 130) $Obj1 = ObjCreate("ShockwaveFlash.ShockwaveFlash.10") $Obj1_ctrl = GUICtrlCreateObj($Obj1, 0, 0, 700, 500) $_PlayButton = GUICtrlCreateButton ( 'play', 15, 515, 70, 20 ) $_StopButton = GUICtrlCreateButton ( 'stop', 105, 515, 70, 20 ) $_NextButton = GUICtrlCreateButton ( 'next', 195, 515, 70, 20 ) GUISetState(@SW_SHOW) $_I=0 While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $_PlayButton If $Obj1.Movie Then $Obj1.play Else $Obj1.Movie = 'c:\file.swf' EndIf Case $_StopButton $Obj1.Stop $_I=0 Case $_NextButton $_I=+1 $Obj1.GoToFrame ( $_I ) $Obj1.Play Case Else EndSwitch WEnd Edited May 14, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts 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