Important alert: (current site time 7/16/2013 4:50:25 AM EDT)
 

article

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
author picture
 
     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...   
  1. 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.
  2. 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.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. 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
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
6/22/2002 5:29:09 PMbinho

bom
(If this comment was disrespectful, please report it.)

 
8/31/2004 5:44:34 PMChe Guevara

great.
(If this comment was disrespectful, please report it.)

 
11/7/2008 6:11:48 AMShriram 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 AMcaesar_adhitya

thanks......
(If this comment was disrespectful, please report it.)

 
8/22/2012 3:56:06 AMeslam

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.