I have a flash file where I can pass xml from file :
-
script type=”text/javascript”>
-
var flashvars = {};
-
flashvars.xmlSource = “XML.xml”;
… - /script>
Can I send xml from php in varible to flash example:
$xml = “?xml version=”1.0 …”;
- script type=”text/javascript”>
- var flashvars = {};
- flashvars.xmlSource = ?php echo $xml; ?>;
… - /script>
thank you
Do like in your first example, but let XML.xml actually be a PHP file that echoes out the XML content. (Or call it xml.php and pass that as the xml filename)