Friday, June 6, 2014

Embedding SWF

my friend Berli asked me to make a tutorial on how to embed flash SWF into a blog, so here's how it's done.

  1. the first thing you would want to do is have all the necessary stuff such as:
    1. an SWF file you want to embed
    2. a blog or website or whatever
    3. a dropbox account (or any other site that can share public links)
  2. now, upload the SWF file to dropbox, which you should be able to do yourself, then put it in the public folder, newer dropbox users won't have a public folder, don't worry, you can enable it, just click the link here.
  3. after that get the public link, by right clicking on the SWF (in dropbox) and press the copy public link.
  4. now if you paste it somewhere it will give you a link to your SWF, try pasting it on the address bar and press enter, if your SWF shows up you are doing fine...
  5. next you should open blogger and edit the blog's layout, then press add gadget and chose HTML/Javascript, a window should pop up, fill in the title with anything you want, then for the code, paste this in:
  6. 1
    2
    3
     <embed align="middle" allowscriptaccess="always" height="your swf width"  
      pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="your swf public   
     link" type="application/x-shockwave-flash" width="your swf height"></embed><br 
    
  7. change the height width and replace the "your swf public link" with the link you got from dropbox, then save.
  8. for posts, do the same but paste the code on the create post page HTML (not  compose).
if you did things correctly it will workout just great, so yeah...

No comments:

Post a Comment