The Daily Click ::. Forums ::. Klik Coding Help ::. Flash Embedding
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
19th September, 2010 at 17:17:47 -

Im confused as to what to do to embed flash games. I have a website that i can use, but i dont understand what to do after that. Just googling how to do it isnt helping me very much.

 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
19th September, 2010 at 17:53:09 -

To embed flash into your website you simply use a small piece of HTML. I've pasted an example below:

<object width="550" height="400">

<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>


That's the minimum code you need to embed flash - replace somefilename.swf with the filename of your flash game.


 
This is a signature. Have this one on me.

OMC

What a goofball

Registered
  21/05/2007
Points
  3539

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
19th September, 2010 at 19:16:11 -

And if you don't want to hunt for this code, you can use what MMF2 gives you. When you build an swf, MMF2 creates an html file with the same name. Open it in notepad and you'll have the code you need right there. Just look for where you see the
<object>
and
</object>
tags. Copy all that into your site!

What host are you using? Some sites that use easy creation tools have buttons that let you insert html code. Unless you're building from scratch, that's what you'll need.


 

  		
  		

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
19th September, 2010 at 19:23:55 -

http://joncb.weebly.com/
the actual flash screen doesnt come up, just MMF Flash Application. Click on the Application to set the focus

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3539

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
19th September, 2010 at 19:49:30 -

Is the SWF uploaded to the site? I don't know how weebly works, but the filename in the code has to point to the correct pathname to the swf.

 

  		
  		

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
19th September, 2010 at 19:50:30 -


Originally Posted by Jon C-B
http://joncb.weebly.com/
the actual flash screen doesnt come up, just MMF Flash Application. Click on the Application to set the focus



The file doesn't exist on your server (http://joncb.weebly.com/Flash%20Game%20Test.swf). Are you sure you uploaded the SWF file to your website?

If you have then it could be an issue with having spaces in the Flash file's name.

 
This is a signature. Have this one on me.

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
19th September, 2010 at 22:58:19 -

All i did was just put the html code from that thing with the notepad onto the site with a html code box.

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
19th September, 2010 at 22:59:31 -

if it helps this is what i pasted:
<html>

<head>
<title>Multimedia Fusion Flash Application</title>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<p>MMF Flash Application. Click on the Application to set the focus.</p>

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
id="Flash Game Test" width="320" height="240"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="Flash Game Test.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="Flash Game Test.swf" quality="high" bgcolor="#ffffff"
width="320" height="240" name="Flash Game Test" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</body>
</html>


 
n/a

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
19th September, 2010 at 23:09:25 -

You need to upload the flash file to your web server/hosting - the web site can't just read it off your computer or anything. All the HTML code does is let the page know you want to embed a specific flash file, it doesn't actually embed it into the code for you.

It's the same as inserting an image into a web page - you need to upload the image and then specify the HTML to display the image. Works pretty much the same with Flash files.


 
This is a signature. Have this one on me.

OMC

What a goofball

Registered
  21/05/2007
Points
  3539

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
19th September, 2010 at 23:14:02 -

In the Weebly editor under "elements", click "Multimedia". Drag the flash icon where you want it and click it to upload the swf file. If you ever need to upload a file in the future, you can drag the file icon.

Side note: This is an awful host.

 

  		
  		

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
19th September, 2010 at 23:58:34 -

Yea i know its pretty bad, but its fast and free. And I already had an account

 
n/a
   

Post Reply



 



Advertisement

Worth A Click