oActiveX:Do("Stop") No me funciona

oActiveX:Do("Stop") No me funciona

Postby Ruben D. Fernandez » Fri Aug 29, 2008 12:37 pm

Antonio:
Este es el codigo que no me funciona el oActiveX:Do("Stop")

Código de Raymundo Islas.(Gracias Raymundo)

FUNCTION FLASHINTRO()
LOCAL oActiveX


DEFINE DIALOG dbSplshIni RESOURCE "SALUDO"


REDEFINE ACTIVEX oActiveX ;
ID 110 ;
PROGID "ShockwaveFlash.ShockwaveFlash.1" ;
OF dbSplshIni

dbSplshIni:bStart := { || DoXInProcs( oActiveX ) }

dbSplshIni:lHelpIcon := .F.
ACTIVATE DIALOG dbSplshIni CENTER

oActiveX:Do("Stop")

Return(.F.)
//--------------------------------------------------//

Static Function DoXInProcs( oActiveX )
LOCAL cPthFlsh :="C:\GL\Saludo.SWF"
oActiveX:Do( "LoadMovie", 0, cPthFlsh )
oActiveX:Do( "Play" )
Return NIL
Ruben D. Fernandez
 
Posts: 189
Joined: Sun Jul 08, 2007 1:46 am
Location: Uruguay

Re: oActiveX:Do("Stop") No me funciona

Postby mmercado » Fri Aug 29, 2008 6:46 pm

Ruben D. Fernandez wrote:no me funciona el oActiveX:Do("Stop")
Hola Rubén:

Ya probaste con oActiveX:End() ?

Aquí te dejo un ejemplo funcionando:
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

Function Main()

   Local oWnd, oActiveX, oMenu

   MENU oMenu
      MENUITEM "Stop" ACTION oActiveX:Do( "Stop" )
      MENUITEM "Play" ACTION oActiveX:Do( "Play" )
      MENUITEM "End" ACTION oActiveX:End()
   ENDMENU

   DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support" MENU oMenu

   oActiveX = TActiveX():New( oWnd, "ShockwaveFlash.ShockwaveFlash.1" )
   oActiveX:Do( "LoadMovie", 0, "c:\fwh\samples\ball.swf" )

   ACTIVATE WINDOW oWnd ;
      ON INIT oActiveX:Do( "Play" )

Return Nil
Saludos.

Manuel Mercado
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Postby Antonio Linares » Fri Aug 29, 2008 7:43 pm

Ruben,

Prueba así:

ACTIVATE DIALOG dbSplshIni CENTER ;
VALID ( oActiveX:Do("Stop"), .T. )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42161
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 21 guests