In flash Code
Onenterframe = Function () {
VaR tmp_id=ID;//ID is a variable from the page
}
Methods on the page < Script >
Function F_change (FID)
{
Document. All ("Object1"). Setvariable ("ID", FID)
}
</ Script >
< Object Classid = "CLSID: D27CDB6E-AE6D-11cf-96B8-444553540000" Codebase = "Http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" Width = "550" Height = "400" ID = "Object1" >
< Param Name = "Movie" Value = "Test.swf" >
< Param Name = "Quality" Value = "High" >
< Param Name = "Flashvars" ID = "Flashvars" Value = "ID" >
< Embed SRC = "Test.swf" Quality = "High" Pluginspage = "Http://www.macromedia.com/go/getflashplayer" Type = "Application/X-Shockwave-flash" Width = "550" Height = "400" > </ Embed > </ Object > < BR />
< ASP: Label ID = "Label1" Runat = "Server" > </ ASP: Label >
< BR />
< Button Onclick = "Javascript: f_change (123 )" > Test </ Button >
< Button Onclick = "Javascript: f_change (456 )" > Test </ Button >
Ideas...
Use loadvar (<ParamName= "Flashvars"ID= "Flashvars"Value= "ID" >) Pass the value to the Flash (Onenterframe) to dynamically update the received value.
Disadvantages:
Constantly refresh the flash and occupy CPU resources.
Searching for other methods...
Why is the flash remoting for. Net of... Macromedia not supported to directly call the method on the page?