How to use HTML param in Actionscript 2

后端 未结 2 1605
一整个雨季
一整个雨季 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

    
    

    (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");
    }
    

提交回复
热议问题