html swf包装中的php变量?

Can you place php varibles in the html wrapper for a swf, that could be read into the swf when it loads?

Perhaps using a param?

 $myVariable = "$var1,$var2,$var3";

like this with php in the html?

<param name=FlashVars value="$myVariable" />

or perhaps ?

<param name=FlashVars value="myVariable=$myVariable" />

Then perhaps in the swf with as3 using something like this?

var myloader:URLLoader = new URLLoader()
myloader.load(new URLRequest(this.root.loaderInfo).parameters))
myloader.addEventListener(Event.COMPLETE, onLoaded)

function onLoaded(evt:Event)
{
trace(myloader.data)

}

Unsure how to access it using the correct path to the param and then how to get the php variable $myVariable into myloader.data?

Greater wisdom required than mine. Kindest regards. Adrian.

The correct syntax would be:

<php 
    $myVariable = 'myvar=myValue&myothervar=myOtherValue';
?>
<param name=FlashVars value="<?php echo $myVariable; ?>" />

or...

<php 
    $myVariable = 'myValue';
    $myOtherVariable = 'myOtherValue';
?>
<param name=FlashVars value="myvar=<?php echo $myVariable; ?>&myothervar=<?php echo $myOtherVariable; ?>" />

..and remember... the variables being passed in should be name-value pairs separated with ampersands...

 $myVariable = "varone=somevalue&vartwo=someothervalue";