两个mxml页面如何实现跳转,顺便还带个值?
google了好久,大多数建议用state和viewStack。
但是也有强人想出了法子:
一个页面:
var dataXML:XML = 
<data> 
  <kansyuCd>0001 </kansyuCd> 
</data>; 
var request1:URLRequest = new URLRequest("http://localhost:8080/IbisDemo/flex/w3505_1.html"); 
    request1.data = dataXML.toXMLString(); 
    request1.method = URLRequestMethod.POST; 
    navigateToURL(request1,"_self"); 
这样传递参数。
第二个页面
var url:String = ExternalInterface.call("window.location.toString"); 
这样去接这个参数。
没去试,考虑到自己功力尚浅,这些从mxml到html在由html到mxml的参数传递,实在是明白不了。
我还是用viewStack吧!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-02-08
相关资源
相似解决方案