 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Graylord
Joined: 06 Oct 2008 Posts: 9
|
Posted: Thu Oct 09, 2008 2:39 am Hosting flash games |
|
|
|
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: 1417 Location: Biloxi, MS
|
Posted: Thu Oct 09, 2008 11:01 am |
|
|
|
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
|
Posted: Fri Oct 10, 2008 7:11 am Re: Hosting flash games |
|
|
|
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: 1417 Location: Biloxi, MS
|
Posted: Fri Oct 10, 2008 12:32 pm |
|
|
|
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.
Thank you for posting back your solution for others to read. |
|
Graylord
Joined: 06 Oct 2008 Posts: 9
|
Posted: Fri Oct 10, 2008 1:38 pm |
|
|
|
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: 1417 Location: Biloxi, MS
|
Posted: Fri Oct 10, 2008 2:24 pm |
|
|
|
That's why I dumped that expensive program (Dreamweaver) years ago as it never could write correct code either syntactically or semantically.  |
|
Graylord
Joined: 06 Oct 2008 Posts: 9
|
Posted: Sat Oct 11, 2008 12:34 pm |
|
|
|
| What do you use instead of dreamweaver? Or do you write the codes yourself? |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 11, 2008 1:06 pm |
|
|
|
| I hand code all my pages using a new HTML Editor I am evaluating for the author. |
|
Graylord
Joined: 06 Oct 2008 Posts: 9
|
Posted: Sat Oct 11, 2008 1:18 pm |
|
|
|
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: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 11, 2008 2:23 pm |
|
|
|
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
|
Posted: Sat Oct 11, 2008 2:53 pm |
|
|
|
| Code: |
| line 59 column 11 - Warning: <embed> is not approved by W3C |
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: 1417 Location: Biloxi, MS
|
Posted: Sat Oct 11, 2008 4:02 pm |
|
|
|
Don't pay attention to the warning about the embed tag. Validator has never liked it. 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. |
|
|
|
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
|
|
|
|
|