[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 529
  • Last Modified:

Returning a Javascript variable value into Flash (AS2)

Hi Folks,

I have the following lastpage function in javascript which is getting called in a html page onload

<body onLoad="lastpage();">

I have a flash page which has a dynamic text field with a variable name of score. I wanted to return the value from Javascript into this dynamic text field.

Any ideas how?

Thanks

RG
function lastpage(){
	var finalscore = WM_readCookie("scoreval");									
	var percentscore = calculatescore (finalscore, totalquestions);			
	percentscore = eval(percentscore);
	var score = percentscore ;
	return score ;
}

Open in new window

0
rgarimella
Asked:
rgarimella
1 Solution
 
H01Commented:
Hi rgarimella,

You can use javascript function SetVariable to return the value into the text dynamic field.

You can visit this link http://oddhammer.com/tutorials/firefox_setvariable/ as sample.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now