Skip to content Skip to sidebar Skip to footer

How To Use Html Param In Actionscript 2

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. i know

Solution 1:

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

<PARAMNAME=FlashVarsVALUE="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");
}

Solution 2:

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

Post a Comment for "How To Use Html Param In Actionscript 2"