HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Hosting flash games
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia
View previous topic :: View next topic  
Author Message
Graylord



Joined: 06 Oct 2008
Posts: 9

PostPosted: Thu Oct 09, 2008 2:39 am     Hosting flash games Reply with quote

Hey, im trying to host some flash games.
Im trying to add the games in a "window" with my site around it.
But for some reason nothing happens, here is an example: http://ultimate-gamer.org/games/pandemic_ii.php

It runs fine when i dont have it in the php but by itself.

Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','700','height','500','title','Pandemic II','src','ac16e317750b','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','ac16e317750b' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="700" height="500" title="Pandemic II">
          <param name="movie" value="ac16e317750b.swf" />
          <param name="quality" value="high" />
          <embed src="ac16e317750b.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="700" height="500"></embed>
        </object></noscript>


The game is uploaded to the same folder, as the .php
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1274
Location: Biloxi, MS

PostPosted: Thu Oct 09, 2008 11:01 am     Reply with quote

Is http://ultimate-gamer.org/games/pandemic_ii.php the page you are having problems with as it runs and plays fine in Firefox 2.0.0.17.

Your code looks ok for player except for the fact there is no closing embed tag. Embed only uses one tag, but that wouldn't create any problems.

Coding errors:
CSS
HTML
Graylord



Joined: 06 Oct 2008
Posts: 9

PostPosted: Fri Oct 10, 2008 7:11 am     Re: Hosting flash games Reply with quote

Yeah, but i fixed it, might have been before you tried it, sorry for the late reply.

I had to remove.
Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','700','height','500','title','Pandemic II','src','ac16e317750b','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','ac16e317750b' ); //end AC code
</script>

and
Code:
<noscript></noscript>

I case of further similiar questions.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1274
Location: Biloxi, MS

PostPosted: Fri Oct 10, 2008 12:32 pm     Reply with quote

That's a relief that you got it fixed. I hadn't a clue as to what to suggest after I looked at the working page and the code. Razz

Thank you for posting back your solution for others to read.
Graylord



Joined: 06 Oct 2008
Posts: 9

PostPosted: Fri Oct 10, 2008 1:38 pm     Reply with quote

Yeah, its the code dreamweaver cs3 gives you if you just drag it in.
So it most almost certain more will get that issue.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1274
Location: Biloxi, MS

PostPosted: Fri Oct 10, 2008 2:24 pm     Reply with quote

That's why I dumped that expensive program (Dreamweaver) years ago as it never could write correct code either syntactically or semantically. Razz
Graylord



Joined: 06 Oct 2008
Posts: 9

PostPosted: Sat Oct 11, 2008 12:34 pm     Reply with quote

What do you use instead of dreamweaver? Or do you write the codes yourself?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1274
Location: Biloxi, MS

PostPosted: Sat Oct 11, 2008 1:06 pm     Reply with quote

I hand code all my pages using a new HTML Editor I am evaluating for the author.
Graylord



Joined: 06 Oct 2008
Posts: 9

PostPosted: Sat Oct 11, 2008 1:18 pm     Reply with quote

Aha, i see.
Also could you please check the game again? It doesnt seem to load, but it could just be client side.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1274
Location: Biloxi, MS

PostPosted: Sat Oct 11, 2008 2:23 pm     Reply with quote

Not loading for me at all. Get loading bar, but never get game loaded to be able to play. Tried in IE. Same thing.
Correct these simple errors and see if that corrects the loading problem:

Quote:
Result: 0 errors / 22 warnings

line 6 column 1 - Warning: <meta> element not empty or not closed
line 26 column 1 - Warning: <link> element not empty or not closed
line 47 column 11 - Warning: missing </strong> before <center>
line 49 column 1 - Warning: inserting implicit <strong>
line 49 column 9 - Warning: <img> attribute with missing trailing quote mark
line 50 column 22 - Warning: inserting implicit <strong>
line 55 column 50 - Warning: discarding unexpected </a>
line 59 column 11 - Warning: <embed> is not approved by W3C
line 82 column 148 - Warning: discarding unexpected </span>
line 88 column 11 - Warning: missing </span> before <center>
line 88 column 64 - Warning: inserting implicit <span>
line 88 column 136 - Warning: discarding unexpected </span>
line 43 column 1 - Warning: missing </center>
line 49 column 9 - Warning: <img> escaping malformed URI reference
line 49 column 9 - Warning: <img> proprietary attribute "href"
line 88 column 11 - Warning: <span> proprietary attribute "height"
line 88 column 64 - Warning: <span> proprietary attribute "height"
line 41 column 1 - Warning: trimming empty <span>
line 47 column 11 - Warning: trimming empty <strong>
line 50 column 22 - Warning: trimming empty <strong>
line 55 column 29 - Warning: trimming empty <span>
line 88 column 11 - Warning: trimming empty <span>


This is one that needs attention for sure:
Code:
img src="../banner.png" alt="ultimate-gamer" href="http://ultimate-gamer.org width="248" height="78" />
Graylord



Joined: 06 Oct 2008
Posts: 9

PostPosted: Sat Oct 11, 2008 2:53 pm     Reply with quote

Code:
line 59 column 11 - Warning: <embed> is not approved by W3C
Shocked

Anyway, got it working thanks, although anything wrong with the banner code except the quotation mark i missed?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1274
Location: Biloxi, MS

PostPosted: Sat Oct 11, 2008 4:02 pm     Reply with quote

Don't pay attention to the warning about the embed tag. Validator has never liked it. Razz If you really wanted your page to validate 100%, then you will have to insert the embed code via script.

This, "<img src="../banner.png" alt="ultimate-gamer" href="http://ultimate-gamer.org width="248" height="78" />", still hasn't been corrected. There is NO href="" attribute for the image tag. You also left off quote after "....org" anyway.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial