Flash中接收Html参数方法

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,

0,0" width="300" height="150" id="Flash1" align="center">
            <param name="allowScriptAccess" value="sameDomain" />
            <param name="movie" value="f2.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#ffffff" />
   <param name="FlashVars" value="param1=123&param2=456" />
            <embed src="f2.swf" quality="high" bgcolor="#ffffff" width="300" height="150"

name="Flash1" FlashVars="param1=123&param2=456"  swLiveConnect="true" align="center" allowScriptAccess="sameDomain"

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>

在flash中 ,選中 “圖層1”,在ActionScript直接用這樣的方法就可以接收了
txtInput.text=param1
txtMemo.text=param2


来自:http://www.cnblogs.com/talantlee/archive/2007/04/19/719844.html

你可能感兴趣的:(Flash)