<?php

class Communication
{
	
	public $MESSAGE_NOTIFY = "Hi, from PHP! You said: ";
	
	function Communication()
	{
		
	}
	
	public function respond($str)
	{
		return $this->MESSAGE_NOTIFY . $str;
	}
	
	$communication = new Communication();

	if ($_GET['a'] == "nowyKomunikat")
	{
	   // Wyślij komunikat z powrotem do Flasha
	   print "resp=" . $communication->respond($_GET['b'] );
	}

}

?>