Answer to Question #637 in Action Script | Flash | Flex | ColdFusion for d122

Question #637
How do I call a method from another class?
1
Expert's answer
2010-09-15T07:12:20-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS