package a{
public class a{
public var a_var:String;
public var x_var:String;
public function a(){
var a_var = 'My name';
var x_var = 'X string'
}
public function show_a():String{
return a_var;
}
}
public class b{
public function b(){
var a_obj:a = new a();
trace('trace' + a_obj.a_var ); //is this wrong?
trace(a_obj.show_a()); //is this possible then what would be the out put?
}
}
}
Hi all i want to get the variables from class a to class b. The above code is not working :( . It return the null values from the class a :(..
or any other method??