Question #637

How do I call a method from another class?

Expert's answer

You can call a method from another class in the following way:
package {
public class Class1 {
public function Class1() {
var obj : Class2 = new Class2()
// calling method of Class2 object from Class1 method
obj.someMethod()
}
}
}
LATEST TUTORIALS
APPROVED BY CLIENTS