Flash Block Problem

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Flash Block Problem
budweis
CZ Super Newbie
 Codezwiz Site Donator
budweis has been a member for over 19 year's 19 Year Member
usa.gif missouri.gif
Status: Offline
Joined: Nov 21, 2004
0.01 posts per day
Posts: 63
Points: 4,344
   
i made my first flash block and activated it and it works but it has some "." here and there beside the applet so i must have done something wrong:) heres the code for the block.

<?php
$content = "<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=\"150\" height=\"237\"> "
."<param name=\"movie\" value=\"swf/matic.swf\"> "
."<param name=quality value=high> "
."<embed src=\"swf/matic.swf\" quality=high
pluginspage=\"http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash\"
type=\"application/x-shockwave-flash\"
width=\"150\" height=\"237\"></embed>"
."</object>";
?>



Back to top Reply with quote
#2   re: Flash Block Problem
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
You don't need ." and " at the beginning and end of each sentence, unless you're echoing something. You only need the opening " and the closing ".
$content = " blah blah blah
blah
blah
blah blah blah";



Back to top Reply with quote
#3   re: Flash Block Problem
budweis
CZ Super Newbie
 Codezwiz Site Donator
budweis has been a member for over 19 year's 19 Year Member
usa.gif missouri.gif
Status: Offline
Joined: Nov 21, 2004
0.01 posts per day
Posts: 63
Points: 4,344
   
thanks for the reply:) i changed it like you said but with closing tags on still showed this in corner ";?> so i tried changing the end tags by removing ?> and tryed and it showed "; still in corner so i deleted all the closing tages and ended up with code like this and works perfectly.should it?

<?php
$content = "<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="157" height="248">
<param name="movie" value="swf/matic.swf">
<param name=quality value=high>
<embed src="swf/matic.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
width="157" height="248"></embed>
</object>



Back to top Reply with quote
#4   re: Flash Block Problem
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
You should have something like this:

<?php
$content = "<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=\"150\" height=\"237\">
<param name=\"movie\" value=\"swf/matic.swf\">
<param name=quality value=high>
<embed src=\"swf/matic.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"
type=\"application/x-shockwave-flash\"
width=\"150\" height=\"237\"></embed>
</object>";
?>


If you're writing HTML code inside of PHP, you have to escape the quotation marks with a backslash, like \".

Here's another way you could do it, which I think is closer to the way you were trying to do it at first. You just left out the = sign.

<?php
$content = "<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=\"150\" height=\"237\"> "
.="<param name=\"movie\" value=\"swf/matic.swf\"> "
.="<param name=quality value=high> "
.="<embed src=\"swf/matic.swf\" quality=high
pluginspage=\"http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash\"
type=\"application/x-shockwave-flash\"
width=\"150\" height=\"237\"></embed>"
.="</object>";
?>


Try each one and see if they work for you.


Back to top Reply with quote
#5   re: Flash Block Problem
budweis
CZ Super Newbie
 Codezwiz Site Donator
budweis has been a member for over 19 year's 19 Year Member
usa.gif missouri.gif
Status: Offline
Joined: Nov 21, 2004
0.01 posts per day
Posts: 63
Points: 4,344
   
ok all fixed now thanks:)



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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
You cannot attach files in this forum
You cannot download files in this forum