Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Help with incorporating flash games

Asked Modified Viewed 4,709 times
W
webbooo
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

Hi Guys,

I'm trying to incorporate Flash Games into my site. Games have just been setup as Articles and I have just added the code to embed the flash files which are saved on the server (Thanks Brendan) however when I open the article all I get is the code without any attempt to open the flash?

Anybody have any suggestions for this?

Thanks
Adam

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400">
  <param name="movie" value="flash/3dworm.swf">
  <param name="quality" value="high">
  <param name="menu" value="false">
  <embed src="flash/3dworm.swf" width="550" height="400" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>
</object>


/Moderator: put code tags and disabled smileys
Edited by Sveinungs on 06-10-2006 11:03,
0 replies

8 posts

S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Better to use Custom pages for this purpose? Try this code in a custom page:

<?php
echo "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='550' height='400'>
<param name='movie' value='flash/3dworm.swf'>
<param name='quality' value='high'>
<param name='menu' value='false'>
<embed src='flash/3dworm.swf' width='550' height='400' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' menu='false'></embed>
</object>";
?>
0 replies
W
webbooo
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

I tried this in the article and also in the custom page. When I do it in the custom page the text always carries over to the next line and therefore wont work. Not enough characters fit on the one line??? below is how it appears. So I havnt had any joy with both. I know http://www.valley-venturers.wellington.net.nz/news.php has a similar setup which is done by adding an article and then embeding the flash.

Quote


<?php
echo "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='550' height='400'>
<param name='movie' value='flash/3dworm.swf'>
<param name='quality' value='high'>
<param name='menu' value='false'>


still no joy

thanks
Adam
0 replies
W
webbooo
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

how can one increase the amount of characters on one line?
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Used in a custom page, the text should not wrap inside the
<?php

?>

If you're using TinyMCE in custom pages, the code will not work eighter. If not, this should work just fine.
Try the code in a Center panel and see what happens then?
0 replies
W
webbooo
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

Thanks for your advise however I'm still having no joy. I have tried the code in a Panel, Article and also with a custom page with the TinyMCE editor on and off and the text continues to wrap and therefor I am unable to embed the flash and it wont work :(

not sure whats happening but its very frustrating...

Thanks
Adam
0 replies
W
webbooo
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

Help!!!
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

This code works as a article or as custom page. Just add this code into the box. no changes. You can add <center></center> if you like though.
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='550' height='400'>
<param name='movie' value='flash/3dworm.swf'>
<param name='quality' value='high'>
<param name='menu' value='false'>
<embed src='flash/3dworm.swf' width='550' height='400' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' menu='false'></embed>
</object>


EDIT: I just realised the other thing you need to do is turn of automatic linebreaks in an article. It wont stop it from working but you'll get a whole lot of white space at the top.
Edited by robo_rat on 08-10-2006 05:25,
0 replies
W
webbooo
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

Thanks Robo-Rat

My Flash Games are now working. Great advice

Cheers again
:)
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

R
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
W
W
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet