Solved

Returning a Javascript variable value into Flash (AS2)

Posted on 2009-04-13
1
506 Views
Last Modified: 2013-11-11
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
Comment
Question by:rgarimella
1 Comment
 
LVL 4

Accepted Solution

by:
H01 earned 500 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now