@ flexy: is this what you mean?
Their are probably some errors in the code, but am i on the write track?
<mx:Button click=" print.send();"/>
<mx:HTTPService id="print" url="/print.php"
showBusyCursor="true" method="POST" useProxy="false">
<datatoprint>{datatoprint .text}</ datatoprint >
</mx:HTTPService>
php code
<?
$datatoprint = $_POST["datatoprint"];
$handle = printer_open("HP Deskjet 930c");
printer_write($handle, $ datatoprint);
printer_set_option($handle, PRINTER_MODE, "raw");
printer_close($handle);
?>