How to make an interactive salary calculator that allows users compare their salaries against celebs


hello, please how can make type of interactive salary calulator? has got tutorial know of, or steps can follow. ideally calculator should allow people inout salaries shows how long takes public figure make same amount, this:
http://www.watchmywallet.co.uk/news/2013/august/gareth-bale-salary-calculator/

thank

:

 

var public_figure1_annual_income:number=1000000;

etc

.

.

 

when public figure chosen , user ready display output (ie, they've entered salary in input_tf), call comparef passing public figure's name (as string).

 

 

function comparef(public_figure:string):void{

output_tf.text = string(formatf(number(input_tf.text)/this[public_figure+"_annual_income"]));

}

 

function formatf(n:number):string{

return 365*n+" days";

}



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP