Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Gráficos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 14-11-2004
Jan_polero Jan_polero is offline
Miembro
 
Registrado: may 2004
Posts: 62
Poder: 20
Jan_polero Va por buen camino
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.
Responder Con Cita
  #2  
Antiguo 14-11-2004
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Poder: 10
marcoszorrilla Va por buen camino
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.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.

Última edición por marcoszorrilla fecha: 14-11-2004 a las 21:38:36.
Responder Con Cita
  #3  
Antiguo 30-01-2009
depazco depazco is offline
Registrado
 
Registrado: jun 2007
Posts: 2
Poder: 0
depazco Va por buen camino
Exclamation

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.
Responder Con Cita
  #4  
Antiguo 31-01-2009
Avatar de MAXIUM
MAXIUM MAXIUM is offline
Miembro
 
Registrado: may 2005
Posts: 1.488
Poder: 20
MAXIUM Va camino a la fama
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
Responder Con Cita
  #5  
Antiguo 31-01-2009
depazco depazco is offline
Registrado
 
Registrado: jun 2007
Posts: 2
Poder: 0
depazco Va por buen camino
Smile

mm buen punto.. me falto eso... probaré... gracias!"
Responder Con Cita
  #6  
Antiguo 02-02-2009
cocute cocute is offline
Miembro
 
Registrado: nov 2008
Posts: 403
Poder: 16
cocute Va por buen camino
podrias probar con estos componentes:


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

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

Última edición por cocute fecha: 02-02-2009 a las 14:03:33.
Responder Con Cita
  #7  
Antiguo 15-02-2009
scaballero scaballero is offline
Registrado
 
Registrado: ene 2009
Posts: 2
Poder: 0
scaballero Va por buen camino
Talking

Muchas Gracias me sirvió de mucho
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 20:38:25.


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
Copyright 1996-2007 Club Delphi