2012-07-09 39 views

回答

0

您可以通過GET傳遞值(assets/file.swf?foo=bar):

<object type="application/x-shockwave-flash"> 
    <param name="movie" value="assets/file.swf?foo=bar" /> 
    <param name="allowScriptAcess" value="sameDomain" /> 
</object> 

然後檢索它們是這樣的:

// In the root class: 
trace(loaderInfo.parameters.foo); // bar