How to insert swf files in a page?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

How to insert swf files in a page?

 
0
  #1
Feb 15th, 2008
I wish to insert an swf files in ASP.Net, how can I do it? What is the code in ASP.Net?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: How to insert swf files in a page?

 
0
  #2
Feb 16th, 2008
you can achieve that with single lines of html code :
<embed src="foo.swf" />
you can embed any object using embed tag.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Re: How to insert swf files in a page?

 
0
  #3
Feb 17th, 2008
Thanks buddy! How about if I wish to specify the size of the object?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: How to insert swf files in a page?

 
0
  #4
Feb 17th, 2008
you can specify those settings via tag attributes. like <embed width="59px" and so forth. if you use visual studio, the intellisense will propose you the attribute options when you push the space button after typing the tag.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 95
Reputation: ManicCW is an unknown quantity at this point 
Solved Threads: 11
ManicCW's Avatar
ManicCW ManicCW is offline Offline
Junior Poster in Training

Re: How to insert swf files in a page?

 
0
  #5
Feb 18th, 2008
This is valid XHTML code for inserting swf.

<object type="application/x-shockwave-flash" data="SWFPath" width="SWFWidth" height="SWFHeight">
<param name="movie" value="SWFPath" />
</object>
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 2
Reputation: empkeydotcom is an unknown quantity at this point 
Solved Threads: 1
empkeydotcom empkeydotcom is offline Offline
Newbie Poster

Re: How to insert swf files in a page?

 
0
  #6
Feb 29th, 2008
You can place a label control at the positon displaying swf info. Just set label caption with the swf tag. This way is simple but useful when you want to display swf samples for products for movie trailers on ecommerce webistes.
Last edited by empkeydotcom; Feb 29th, 2008 at 2:06 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 85
Reputation: johnny.g is an unknown quantity at this point 
Solved Threads: 3
johnny.g johnny.g is offline Offline
Junior Poster in Training

Re: How to insert swf files in a page?

 
0
  #7
Feb 29th, 2008
  1. <OBJECT id="banner" style="WIDTH: 696px; HEIGHT: 192px" codeBase="images/banner.swf" code="images/banner.swf" VIEWASTEXT>
  2. <PARAM NAME="movie" VALUE="images/banner.swf">
  3. <embed src="images/banner.swf" width="696" height="192"> </embed>
  4. </OBJECT>
change the required attributes like source ,width ,height ,,etc
hope ths wil help u,,
reply if it does
Johnny.G
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 73
Reputation: ebabes is an unknown quantity at this point 
Solved Threads: 0
ebabes's Avatar
ebabes ebabes is offline Offline
Junior Poster in Training

Re: How to insert swf files in a page?

 
0
  #8
Mar 2nd, 2008
Thanks to all of you guys. Its a big help!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC