954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

sending variables from php to flash

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

aaloo
Junior Poster in Training
76 posts since Oct 2011
Reputation Points: 22
Solved Threads: 0
 
sufyan2011
Junior Poster
166 posts since Dec 2011
Reputation Points: 9
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: