Echo to Flash problem.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sluke
Forum Newbie
Posts: 3
Joined: Sun Mar 22, 2009 6:37 pm

Echo to Flash problem.

Post 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
eliteghost
Forum Newbie
Posts: 6
Joined: Sun Mar 22, 2009 7:53 pm

Re: Echo to Flash problem.

Post 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
sluke
Forum Newbie
Posts: 3
Joined: Sun Mar 22, 2009 6:37 pm

Re: Echo to Flash problem.

Post 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.
Post Reply