Best way to get a variable from another class in AS3
问题 I wonder which one of these methods is the best when trying get a variable from anotherClass to the Main-document-class, and why? Are there any more, even better ways? In example no 1, and the Main-function, can the if-else statement be triggered before the checkLogin function was completely done? Thanks! My no 1. way public class Main extends MovieClip { // Declaring other classes. private var checkLogin:CheckLogin; public function Main() { checkLogin = new CheckLogin(); if(checkLogin