Passing variable from class file to fla

i have tried all manner of things. you must be able to do this but i don’t seem to work it out.
i thought setting the var as public might do it but no.
i don’t understand get and set but think they may do it also.
i want the fla file to execute code based on the value of a variable in the class file (.as).
any thoughts?