|
Play .SWF files, simple!
|
Email
|
| Submitted on: |
9/22/2001 12:11:19 PM |
| By: |
Chris Jeacock
|
| Level: |
Beginner |
| User Rating: |
By 4 Users |
| Compatibility: |
Delphi 5, Delphi 4, Pre Delphi 4 |
| Views: |
24705 |
|
|
|
|
|
For people to play .swf files without installing downloaded components, simple code as well!
|
| |
Terms of Agreement:
By using this article, you agree to the following terms...
- You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
- You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
- You may link to this article from another website, but ONLY if it is not wrapped in a frame.
- You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
|
I've seen some code on here saying how to do .swf files (or swiff files as they call them) but all you need to do is this.
In Delphi, goto Compenent>Import ActiveX Control. Scroll down and look for Shockwave Flash(Version). Then click Install. Thats it! If you dont have the Shockwave Flash ActiveX control (or .ocx file) then you probably haven't got Flash installed. But for the people who have, great!
Making the ActiveX Control Work
I'm goin to tell you how to make it work now. Simply goto ActiveX on the Delphi Pallete and click the ShockwaveFlash button and put it onto the Form. Add a button to the form as well and an Edit Box. Double click the Button and add the following code:
ShockwaveFlash1.Movie := Edit1.Text;
For more experienced users you can make it more user friendly but what that will do is let the user type in the address in the Edit Box and click the button so that it will play in the ActiveX Control. When you do it yourself it will seem more simple but i'm just explaining loads for the thickos.
|
|
Other 2 submission(s) by this author
|
|
Report Bad Submission
|
Your Vote
|
| |
Other User Comments
|
6/22/2002 5:29:09 PM: binho
bom (If this comment was disrespectful, please report it.)
|
8/31/2004 5:44:34 PM: Che Guevara
great. (If this comment was disrespectful, please report it.)
|
11/7/2008 6:11:48 AM: Shriram somvanshi
good (If this comment was disrespectful, please report it.)
|
6/2/2009 6:42:28 AM: _
THANKS! (If this comment was disrespectful, please report it.)
|
12/8/2010 3:49:18 AM: caesar_adhitya
thanks...... (If this comment was disrespectful, please report it.)
|
8/22/2012 3:56:06 AM: eslam
very good (If this comment was disrespectful, please report it.)
|
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular article, please
click here instead.)
To post feedback, first please login.
|