Passing Variables to Flash
July 10, 2006 12:00 AM
If you're passing a variable into flash you put "flashvars" in the name field (no quotes) and "myVariable=something" in the value field - again no quotes. Here "myVariable" is a variable you are setting in your flash doc and "something" is what you are setting it to. FlashVars will always go into flash as a string. If you are passing in a number (say 3) in lectora you would put: flashVars myNum=3 In flash you would have to convert that to a number so in your actionscript you would have:var newNum = parseInt(myNum); This will convert the string "3" to the number 3 and put it in the variable newNum. If you have decimal points you are passing in use newNum = parseFloat(whateverYourePassingIn) Hope that helps.
Discussions have been disabled for this post