Page 1 of 1

Echo to Flash problem.

Posted: Sun Mar 22, 2009 6:48 pm
by sluke
Hiya,

I'm trying to learn the basics of making flash/php and mysql communicate.

I tried the tutorial found here:

http://www.flashvillage.com/forums/show ... php?t=3694

When I try and run this in Flash i the total_txt box was undefined. After changing the last line of hte php to

echo("&result=$rtnValue&received1=$fVar1&received2= $fVar2");

the total_txt box just shows $rtnValue. Something similar has happening with a lot of other tutorials too.

Any ideas how i can fix this, as once I have this sorted I can starting mesing around with a mysql database etc.

Cheers in advance

Sluke

Re: Echo to Flash problem.

Posted: Mon Mar 23, 2009 6:31 am
by eliteghost
this is somthing i plan to learn too, here are links that help me alot
http://www.gotoandlearn.com/
http://us3.php.net/manual/en/book.swf.php
Hope these help, sorry im not an expert

Re: Echo to Flash problem.

Posted: Tue Mar 24, 2009 4:37 pm
by sluke
Cheers,

I managed to sort it out it was just a syntax error, it should have read:

echo '&result='.$rtnValue.'&received1='.$fVar1.'&received2='.$fVar2;

I'm probably gonna make a tut once I'm done as our app is gonna be really simple and I think it'll cover all the easy steps.