
HTML que carga SWF:
Código :
<!--.Construrama.--> <!--.Ferrhefra Materiales.--> <!--.Sistema Administrativo.--> <!--.http://www.construrama.com.--> <html> <head> <title>Construrama</title> </head> <body> <div id="index" style="position:absolute; width:1014px; height:677px; z-index:1; left:0; top:0;"> <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="1014" height="677"> <param name="movie" value="index.swf"> <param name="quality" value="high"> <param name="menu" value=0> <embed src="index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1014" height="677"></embed> </object> </div> </body> </html>
Flash:
Código :
stop(); LV001=new LoadVars(); LV001.a=_root.InputText001.text; LV001.sendAndLoad("http://localhost/construrama/php/php001.php",LV001,"POST"); LV001.onLoad=function() {if(LV001.b==1) {_root.a.text="ok";} else {_root.a.text=LV001.b;}}
PHP:
Código :
<?php $link=mysql_connect('localhost','root',''); mysql_select_db("construrama"); $sql="SELECT * FROM acceso WHERE password = 'password'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $password = $_POST["a"]; $passIn=""; if($row['1']==$password) {$passIn.="b=1";} else {$passIn.="b=0";} echo $passIn; mysql_free_result($result); mysql_close($link); ?>
Como pueden ver es una especie de login

MQ.