this is my php code

<?php
$i=0;
echo "t$i=pp&";
?>

and this is my as2 code

myData = new LoadVars() 
    myData.load("http://localhost/exercise/0.php") 
    myData.onLoad = function(succes){ 
      if(succes){ 
          
		  a.text=myData.t$i; //this is not working
		 
      } else trace ("Error loading data") 
    }

as you can see i want to send variable"t$i" from php to flash but my this code is not working for me.its like i am sending a variable from php to flash which name is a variable.somebody help me !!!do anyone know how it can be done??
or do anyone know any trick to do this. i dont want to use a.text=myData.t0 simply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.