ok, I’m still learning all this and can’t seem to figure out when I have access to my variables. I have the the follow code:
class Slider {
var myVar = 4;
function Slider () {
var myVar = 6;
}
function findValue () {
trace (myVar);
}
}
The slider function is being called first to update the myVar value then the findValue function is called. How do I get the find Value function to output 6 ?
I want a function that updates the main classes’ variable so thet I can use it from any function. Any help??