FLEX接收外部参数 .

2022-07-05 09:32:45 浏览数 (1)

FLEX参数传递与FLASH有点不同

login..swf?name=aa&password=bb

Flex上是这样接收参数的

myname=mx.core.Application.application.parameters.name; mypassword=mx.core.Application.application.parameters.password;

FLASH中是这样接收到

myname=this.parameters.name;

mypassword=this.parameters.password;

并且要注意,编写FLEX接收外部参数时不要用程序生成的HTML,自己写一个HTML如

<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=”100%” height=”100%”> <param name=”movie” value=”login.swf?name=aa&password=bb” /> <param name=”quality” value=”high” /> <embed src=”flashplayer.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”550″ height=”300″></embed> </object>

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/109795.html原文链接:https://javaforall.cn

0 人点赞