How to use HTML param in Actionscript 2

后端 未结 2 1604
一整个雨季
一整个雨季 2021-01-16 13:32

The main thing in this i have written a code for swf and also the html and i need to pass the 2 parameters from html to swf i am passing clicktag param and other parameter.

相关标签:
2条回答
  • 2021-01-16 13:48

    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");
    }
    
    0 讨论(0)
  • 2021-01-16 13:48

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

    0 讨论(0)
提交回复
热议问题