How do I call a method from another class?
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()
}
}
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Adobe Flash