ForumsProgramming ForumUsing SWF Files for Website

6 3400
deathninja314
offline
deathninja314
3 posts
95

Hi, I am sixth grader who is making a website with a bunch of games that I like on it. Keep in mind that I'm not using a website maker and I'm actually programing. I use Google App Engine for hosting. Anyways I'm wondering what the SWF files Armorgames provides are for. May I use them on my website? If so can someone show me how to embed swf files into html? Thank you for your time and thank you to whoever can help me.

  • 6 Replies
weirdlike
offline
weirdlike
1,296 posts
26,345

THIS is the exact code I use for THIS

Good luck

deathninja314
offline
deathninja314
3 posts
95

Thank you sir, but whenever i link to my swf file it never shows up when i deploy my website, the page is white and there is nothing on it (there should be a game). When i look at the page source it says that the requested url for my file was not found for my server but I'm sure i linked it correctly, - thanks again.

weirdlike
offline
weirdlike
1,296 posts
26,345

the swf file must be in the same directory as the html file

deathninja314
offline
deathninja314
3 posts
95

Sorry but does the same directory mean in the same area? So do you mean my html file has to be in the same folder as the swf file? Also when I open my html files the flash game does open, but when i go on my website it doesn't load. Can you tell me why? Thank you.

weirdlike
offline
weirdlike
1,296 posts
26,345

yes it needs to be in the same folder, but if it doesn't work. Depending on your hosting site you might need to find the url of the game that you uploaded then change the html to point to the url instead of loading locally

&ltembed src="http://url.swf" width="game width" height="game height"&gt

edisath
offline
edisath
2 posts
10

I agree with weirdlike. Your SWF files must be in the same directory as the html file.

Showing 1-6 of 6