I'm working on a little blog app in flash and can't seem to load any variables with html embedded. Is there a way around this? flash code:
var urlLoader:URLLoader = new URLLoader(new URLRequest(path + "index.php"));
urlLoader.addEventListener(Event.COMPLETE, showData);
function showData(e:Event):void
{
var dataObj:URLVariables = new URLVariables( e.target.data );
trace(dataObj.title); // would traces fine
trace(dataObj.content); // throws error
}
index.php:
<?php
$results = "title=this is my title and will print fine";
$results .= "&content=This will cause an error <b>Because of these html tags</b>";
print $results
?>
Benim geçti değişkenleri bazı html yararlanmak isteyen tarihinin ilk adam olamam, ben AMFPHP duymuştum, ama gibi daha basit bir çözüm var, umuyorum:
flash_encode($myVar);
(Json_encode benzer);
Thanks for the input. -J