html页面调用如下:
<html>
<head>
<!-- 中文乱码问题,不加的话,json里面有汉字出错-->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/swfobject.js"></script>
</head>
<body style="margin-left: 0px;margin-top: 0px;margin-right:0px;margin-bottom: 0px; overflow:hidden;">
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var args =
{
"DynamicObjectsName":"12月1日雷电数据",
"DynamicObjects":
[
{"point":"114.37583785,39.35785981298","ImgURL":"http://example.com/issue/82781717.png","Annotaion":"1级雷击点","Detail":""},
{"point":"112.37583785,39.33785981298","ImgURL":"http://example.com/issue/62761717.png","Annotaion":"2级雷击点"," Detail":""}
],
"SymbolID":"1002030303"
}
var so = new SWFObject("http://172.18.51.41:8080/hbgis/index.swf",
"index", "100%", "100%", "9.0.0","#FF6600");
so.addVariable("methodName", "sss");
so.addVariable("ddd", args);
so.write("flashcontent");
</script>
</body>
</html>
flex端如下:
var inputObj:Object=this.loaderInfo.parameters;
Alert.show(inputObj.toString());
for(var para:String in inputObj)
{
Alert.show(para);
Alert.show("参数"+para+":"+inputObj[para]);
}
根据得到的参数,确定你的业务!
<html>
<head>
<!-- 中文乱码问题,不加的话,json里面有汉字出错-->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/swfobject.js"></script>
</head>
<body style="margin-left: 0px;margin-top: 0px;margin-right:0px;margin-bottom: 0px; overflow:hidden;">
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var args =
{
"DynamicObjectsName":"12月1日雷电数据",
"DynamicObjects":
[
{"point":"114.37583785,39.35785981298","ImgURL":"http://example.com/issue/82781717.png","Annotaion":"1级雷击点","Detail":""},
{"point":"112.37583785,39.33785981298","ImgURL":"http://example.com/issue/62761717.png","Annotaion":"2级雷击点"," Detail":""}
],
"SymbolID":"1002030303"
}
var so = new SWFObject("http://172.18.51.41:8080/hbgis/index.swf",
"index", "100%", "100%", "9.0.0","#FF6600");
so.addVariable("methodName", "sss");
so.addVariable("ddd", args);
so.write("flashcontent");
</script>
</body>
</html>
flex端如下:
var inputObj:Object=this.loaderInfo.parameters;
Alert.show(inputObj.toString());
for(var para:String in inputObj)
{
Alert.show(para);
Alert.show("参数"+para+":"+inputObj[para]);
}
根据得到的参数,确定你的业务!