I have a html page which display a dynamic flash developed by our flash developer, and working fine. When I changeed this html into php file, somehow the flash is not showing up and displays "Undifined". I am working on it to try to figure it out, in the meanwhile, just see if anyone can enlighten me on this issue. Thanks.
you might want to post your code or your url or something to better understand what's wrong. but make sure the URL is embedded correctly so your flash movie loads
<?php error_reporting(E_ALL & ~E_NOTICE); include("conn.php"); $sid = $_REQUEST['sid']; $id = $_REQUEST['id'] ; $isjc = 0; if($sid != 53 && $sid != 54 && $sid !=55){ $isjc =1; }//åˆ¤æ–æ˜¯å¦ä¸ºå»ºè®¾è¿›ç¨‹æ¿å—,"1"è¡¨ç¤ºå¦ if($isjc)include("head1.inc"); $sclass_s=@mysql_db_query($db,"select * from $table3 where id=$sid",$link) or die ("æ•°æ®åº“更新失败"); $news_u=@mysql_db_query($db,"update $table4 set view=view+1 where id=$id",$link) or die ("æ•°æ®åº“更新失败"); $news_s=@mysql_db_query($db,"select * from $table4 where id=$id",$link) or die ("æ•°æ®åº“更新失败"); $news_num=@mysql_num_rows($news_s); if($news_num<=0) { echo "<script>alert(\"æ¤IDå·å¯¹åº”的内容å¯èƒ½å·²è¢«ç®¡ç†å‘˜åˆ 除ï¼\");history.back();</script>"; exit; } $sclass_r=@mysql_fetch_object($sclass_s); $news_r=@mysql_fetch_object($news_s); ?> <?php if($isjc){ echo '<table width="1004" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">'; }else{ echo '<table width="775" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">';} ?> <tr> <td width="9" rowspan="6" background="images/00 (2).gif"> </td> <td height="19" colspan="5"> </td> <td width="11" rowspan="6" background="images/00 (2).gif"> </td> </tr> <?php if($isjc){ ?> <tr> <td height="34" colspan="5" align="center"><span class="STYLE11"><?php echo $news_r->title; ?></span></td> </tr> <?php } ?> <tr> <td colspan="5" align="center"><img src="images/00 (4).jpg" width="698" height="8" /></td> </tr> <?php if($isjc){ ?> <tr> <td width="305" height="30" align="center"> </td> <td width="125" align="center"><span class="STYLE17">类别:<?php echo $sclass_r->name ?></span></td> <td width="161" align="center"><span class="STYLE8"><span class="STYLE14">å‘布时间</span>:<span class="STYLE18"><?php echo substr($news_r->date,0,10) ?></span></span></td> <td width="113" align="center"><span class="STYLE8"><span class="STYLE14">阅读次数</span>:<span class="STYLE18"><?php echo $news_r->view ?></span><span class="STYLE14">次</span></span></td> <td width="280" align="center"> </td> </tr> <?php } ?> <tr> <td colspan="5" align="left" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <?php if($isjc){ ?> <td width="17%"> </td> <td width="76%"><p><span class="STYLE8"><br /> </span> <?php } ?> <?php echo '<p style="line-height: 200%"><font style="font-size: 10pt">'.$news_r->content.'</font>'; ?></p></td> <td width="7%"> </td> </tr> </table> <p> </p> <p> </p></td> </tr> <?php if($isjc){ ?> <tr> <td height="25" colspan="5" align="center"><div align="center"><a href="javascript:window.close()">::å…³é—窗å£::</a></div></td> </tr> <?php } ?> </table> <?php if($isjc) include("foot.inc"); mysql_close($link); ?> PHP: function getData() { var php = new LoadVars(); php.sendAndLoad("http://localhost/newschool/pic_show.php",php,"POST"); php.onLoad = function () { arrImg=[this.uri1,this.uri2,this.uri3,this.uri4,this.uri5,this.uri6,this.uri7]; arrUrl=[this.goto1.replace("@","&"),this.goto2.replace("@","&"),this.goto3.replace("@","&"), this.goto4.replace("@","&"),this.goto5.replace("@","&"),this.goto6.replace("@","&"),this.goto7.replace("@","&")]; arrtitle=[this.title1,this.title2,this.title3,this.title4,this.title5,this.title6,this.title7]; img1_mc.loadMovie(arrImg[0]); img2_mc.loadMovie(arrImg[1]); t1.title.text=arrtitle[0]; t2.title.text=arrtitle[1]; t3.title.text=arrtitle[2]; t4.title.text=arrtitle[3]; t5.title.text=arrtitle[4]; t6.title.text=arrtitle[5]; t7.title.text=arrtitle[6]; for(var t=1;t<8;t++) { eval("t"+t)._visible=false; } t1._visible=true; linkbutton.onRelease = function () { getURL(arrUrl[0], "_blank"); }; btn1_mc.gotoAndStop(2); } }// End of the function Code (markup): it's working in html extension, but not php.. Thanks.