Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Gráficos (https://www.clubdelphi.com/foros/forumdisplay.php?f=8)
-   -   Cómo reproducir animaciones flash en delphi? (https://www.clubdelphi.com/foros/showthread.php?t=16079)

Jan_polero 14-11-2004 20:15:14

Cómo reproducir animaciones flash en delphi?
 
Hola a todos.Mi problema es que no sé cómo mostrar una animación en flash dentro de un formulario.El formato .swf no lo reconoce delphi ni con un TImage ni con un TAnimate, y no se me ocurre nada.

marcoszorrilla 14-11-2004 21:35:45

Si te defiendes con el inglés, aquí tienes como hacerlo funcionar, yo he hecho la prueba y funciona.

Cita:

To make use of SWF files in your Delphi application you should have the swf plugin
installed then follow these steps:

Um SWF-Dateien in einer Delphi-Applikation gebrauchen zu können, muss das SWF-Plugin
installiert sein.

{English}

In the Delphi IDE

- click on "Component", "Import ActiveX Control"

- chose "Shockwave Flash" and click on "install".

Now you have a TShockwaveFlash component in your IDE on the ActiveX
tabsheet.

Place the TShockwaveFlash Component onto your form, resize it as needed but for now do not assign a movie to it.

You will need to register the ocx file if it is not installed on the target computer. So you should have a resource file with

- the swflash.ocx and your Flash ( *.swf) file.

- Copy swflash.ocx (from i.e. windows\system32\macromed\flash) and
your custom swf file to your project path.

- Create a textfile with a code like this:

SHOCKWAVEFILE RCDATA yourfile.swf

SHOCKWAVEOCX RCDATA swflash.ocx

(Where yourfile.swf is your swf-file)

- Save this file as flash.rc

- Goto Commandline, change to your project dir and enter the line:

"Brcc32 -r flash.rc"

- Now you have your new resource as flash.res file

{Deutsch}


In der Delphi IDE:
Un Saludo.

depazco 30-01-2009 05:08:15

Gracias por el aporte.... pero tengo un problema... estoy trabajando con delphi 2007 y no puedo instalar este componente... si podrias decirme mas o menos como le hago.....
esto es lo q hago...
components -> import component -> import activeX control -> shockwave flash -> siguiente -> create unit -> finish.
y me cre este unit.
unit ShockwaveFlashObjects_TLB;
y en toolPalette no sale nada de activex mucho menos de Tshockwave flash
... si me pudieran ayudar... gracias.

MAXIUM 31-01-2009 01:40:47

Una vez realizado eso, no funciona si en el equipo donde se ejecuta, no se encuentra previamente registrado dicho ocx.

Además, así como por arte magia, le falta código para poder usar el recurso .swf, de lo contrario hay que colocarlo junto al .exe como archivo externo.

Tampoco funciona si hay otra versión del ocx ya registrada. Lo probe compilado en XP y luego lo probe en Win98

depazco 31-01-2009 22:02:10

mm buen punto.. me falto eso... probaré... gracias!"

cocute 02-02-2009 13:51:17

podrias probar con estos componentes:


http://www.ksdev.com/flashengine/index.html

http://www.almdev.com/prods/smartflash/smartflash.htm

scaballero 15-02-2009 16:05:48

Muchas Gracias me sirvió de mucho :)


La franja horaria es GMT +2. Ahora son las 11:25:26.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi