I just read an article on kirupa.com about incorporating mySQL and PHP with flash. I am dynamically loading conent into a flash movie and am not sure how to format. In my php code i have:
$y = "";
foreach($result as $x){
$y = $y . $x['firstname'] . " ";
}
print "myVar = $y";
In short $result is a query and $y is the value i will be passing along to flash.
the statement $y = $y . $x['firstname'] . " "; puts a space between each name that is passed along. I am trying to find ways of formating $y before sending, i.e. line breaks, bold, italics, color.... etc. In this example i may want the names to be listed on top of each other rather than with a space between them.
I am able to set initial values (other than line breaks (carrage return)) in my flash movie for the content that is dynamically loaded. Is it possible to set formating through my script?