Import flash. External .*;
VaR STR: String = new string (); // defines a variable.
Externalinterface. Call ("GETID (showflash)"); // send a call request to the GETID method of JS. Note: showflash is the page flash ID, not the flash name.
// Click the _ root. Str variable in the Flash main scenario. Note: Add _ root to the STR variable in the main scenario.
On (release ){
Geturl ("mywin" + _ root. Str + _ root. str1 + ". html ");
}
// Assign a value of 22 to Str
<SCRIPT>
Function GETID (flashid)
{
Flashid. setvariable ("_ root. Str", 22 );
}
</SCRIPT>
<Object classid = "CLSID: D27CDB6E-AE6D-11cf-96B8-444553540000"
Codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
Width = "784" Height = "410" id = "showflash">
<Param name = "movie" value = "yindao.swf"> // The ID is different from the name.
<Param name = "quality" value = "high">
<Embed src = "yindao.swf" Quality = "high"
Pluginspage = "http://www.macromedia.com/go/getflashplayer" type = "application/X-Shockwave-
Flash "width =" 784 "Height =" 410 ">
</Embed>
</Object>