Sign in to follow this  
Followers 0
milos83

Help controling flash object

4 posts in this topic

Hi guys.

As I said, I want to stop flash app in a browser,eg. flash game, not a flash movie.

I found some script on a forum.

#include <GUIConstants.au3>
Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash.1")
GUICreate ("Flash", 820, 600, -1, -1)
$GUIActiveX    = GUICtrlCreateObj( $oRP, 10, 10 , 800 , 580)

With $oRP
    .bgcolor = "#000000"
    .Movie = 'http://...game.swf';
    .ScaleMode = 2
    .Loop = True
    .wmode = "Opaque"
    .FlashVars = ""
EndWith

GUISetState ()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

$oRP = 0
GUIDelete ()
Exit

Flash is working in this window, but I dont know how to control it, how to stop it-freeze it

tnx in advance

Share this post


Link to post
Share on other sites



I really don't understand what you mean by "stopping it". Pausing it?


Share this post


Link to post
Share on other sites

I really don't understand what you mean by "stopping it". Pausing it?

yep

If its a game, I want game to freeze.

eg. Sometimes my firefox get stuck and flash freeze for some time. I want to create that same effect. Surely it is possible, but i cant figured it out.

Share this post


Link to post
Share on other sites

$oRP.Playing = False; For pause the flash
$oRP.Play; For resume paused flash


Sorry 4 Bad English, I'm Indonesian...I'm really need 'Translator' for helping me posting in this forum (http://deeriee.wordpress.com)

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