Sign in to follow this  
Followers 0
MATISZON

Flash pause

2 posts in this topic

#1 ·  Posted (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 :unsure:

Edited by MATISZON

[size="3"][font="Arial Black"]I'm from the Polish do not as well know how English[/font][/size]

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
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
Sign in to follow this  
Followers 0