I must be doing this wrong!?
I have two classes, for example: Main and BrowseForFile.
Main creates a new BrowseForFile and adds that object to the stage with addChild.
If I don’t addChild locally in the BrowseForFile class, nothing is added to stage.
So addChild is done both in the Main and BrowseForFile. While it is nice to addChild locally in a class, this seems wrong?
Shouldn’t the new BrowseForFile() class be an object, returned to the Main class?
so why do I have to addChild locally in the object?
Main class
theFile = new BrowseFile();
addChild(theFile);
BrowseForFile class
loader.loadBytes(evt.target.data);
addChild(loader);