As3 -> php and vice versa

Okay so i am trying to figure this out few days already and its killing me…I know its possible it was just a lot easier in AS2. Can anyone help me make this only in as3? (or just pass the variable to php)

For php to As3 i found this and it works. But i would like to know is there a way to use only a variable (eg. $vyhra = ‘true’; ) and not echoing the data?