How to use HTML param in Actionscript 2

徘徊边缘 提交于 2019-12-01 12:49:40

You need to pass in two variables using FlashVars. At it's simplest you can just use

<PARAM NAME=FlashVars VALUE="clickTAG=http://www.domain.com&secondParam=12345">

(though it is worth looking at swfObject to embed the swf). Then in Flash (AS2) you can access the vars directly, eg

on (release) {
getURL(clickTAG + "&mySecondVarIs" + secondParam, "_blank");
}

inside a movie clip we have to address to root like _root.clickTAG otherwise it does not work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!