Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » [SOLVED] How to post an SWF file using HTML


[SOLVED] How to post an SWF file using HTML

Reply
  #1 (permalink)  
Old 10-12-08, 03:00 PM
Sage04 Sage04 is offline
New Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] How to post an SWF file using HTML

i would like to post an swf files, particularly a game, using HTML on my forum. How can i do this or if i cant, how can i post it in my forum topic? i would rather have it in my forum than having a link to the actual file if possible.
Reply With Quote
  #2 (permalink)  
Old 10-13-08, 06:03 AM
phpdeveloper2004 phpdeveloper2004 is offline
Wannabe Coder
 
Join Date: Aug 2004
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Do you want to post the entire swf file as an attachment? Then in the <form> tag put enctype="multipart/form-data" and then method="POST". Action attribute should point to a script or java code which will handle the file upload process, say you can use php script there
__________________
A magazine on programming, web development, technologies and blogging -
www.techcubetalk.com
Reply With Quote
  #3 (permalink)  
Old 10-13-08, 04:27 PM
Sage04 Sage04 is offline
New Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
i want people to be able to play the game on the forum not download it
Reply With Quote
  #4 (permalink)  
Old 10-14-08, 02:34 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
HTML Code:
<object type="application/x-shockwave-flash" data="path/to/flash.swf" width="531" height="193">
	<param name="movie" value="path/to/flash.swf" />
</object>
... where "path/to/flash.swf" is the actual path to the .swf file.
Reply With Quote
  #5 (permalink)  
Old 10-14-08, 02:11 PM
Sage04 Sage04 is offline
New Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thanks that works, its a bit laggy though idk if thats just my comp or what but thanks very much
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Test to html file? St8ic Script Requests 3 04-20-06 06:47 PM
Error message not getting displayed. sanjeet Windows .NET Programming 0 12-20-05 10:48 AM
Form Results to an HTML or Text File bxcheats PHP 3 09-25-04 10:46 AM
Download Html file Delen22 C/C++ 6 03-06-04 09:40 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM


All times are GMT -5. The time now is 09:02 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.