Thursday, July 19, 2012

Hosting Flash on a Blog - The Piggyback Method - July 2012


As I covered in a previous post, there are a number of ways to host a flash game on a blog or website. Here I will go into detail on the method I used earlier to embed a flash game in Blogspot / Google Blogger.

The "Piggyback" (Outsource) method:
This method supports any site that supports HTML input, including free sites such as Google Blogger (blogspot) and Tumblr. It has been successfully tested with Newgrounds.com. Other sites may prove more difficult.
Remember: it is inadvisable to use the services of any site that you do not know and trust.

1) Create an account on your desired host. This always requires an email address and may require you to enter more information. Use discretion.

2) Upload to the site. Newgrounds.com requires a .JPG or .GIF icon for all flash submissions.
NOTE: Both Newgrounds.com and Kongregate.com have a screening process for new games to confirm that the game works and that the maturity rating is appropriate (i.e. you cannot provide an "everyone" rating for a game with excessive violence). This screening process may take varying amounts of time, from a few minutes to overnight.

3) Once your game is online, visit the page where it is hosted.

4) View the HTML source of that page. (Right click the page and select "View Source" in most browsers)

5) Locate the URL address for the .swf file that represents your game. On Newgrounds.com, it will have a similar filename as your game.
Example: http://uploads.ungrounded.net/598000/598935_20120711_test_029_fish_gam.swf
(From uploading an swf named 20120711_test_029_fish_game_v3.swf)

6) Inject the URL into an HTML embed code
Example:
<embed src="http://uploads.ungrounded.net/598000/598935_20120711_test_029_fish_gam.swf" type="application/x-shockwave-flash" width="800" height="450"></embed>

7) Paste the embed code into your own site or blog.

1 comment:

  1. This is a fun beginning programming game that kids can make great use of iPads.
    Tank addicting games

    ReplyDelete