Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any way to play (embed) a swg (Macromedia file) in a form?

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
US
For all you multimedia gurus.

Is there any way to play (embed) a swg (Macromedia file) in a form? Is it possible to use a TPicture component?

Thanks,
rewdee
 
I am no multi-media guru, but a lot of these programs come installed like ActiveX controls on your computer.

Goto components --> import activeX Control and search for
ShockWave ActiveX Control or Shockwave Flash, press Install and delphi will put a component on your ActiveX tab.

I did something similar with Autocad Whip to embed drawing files in my applications, so I think it must be something like that. Steven van Els
SAvanEls@cq-link.sr
 
If i may suggest using the following method (I used it myself with good results.)

1. Create an HTML page, design it and insert SWF file

2. Save file.
3. Use the Webbrowser component on your form (insert it on form where you want SWF to appear)
4. At runtime, use the navigate method on the component to initialise your web page.

This way you keep to generic Delphi comonents. The user must have IE installed for the Webbrowser to function, but as it ships with every copy of Windows (see recent MS anti-trust court case ;-)) - I see no problem there.

Opp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top